Amp\Iterator interface Iterator

Defines an asynchronous iterator over a set of values that is designed to be used within a coroutine.

Summary

Properties

Methods

Methods

advance — public function advance(): Amp\Promise
No documentation.
getCurrent — public function getCurrent(): mixed

Gets the last emitted value or throws an exception if the iterator has completed.