Amp\Producer classProducer implementsAmp\Iterator

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(callable$producer)
No documentation.
Type Parameter Description Default Value
callable $producer No documentation. none
advance —public functionadvance():Amp\Promise
No documentation.
getCurrent —public functiongetCurrent()

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