Amp\Iterator interfaceIterator

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

Summary

Properties

Methods

Methods

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

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