Amp\Producer class Producer implements Amp\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 function advance(): Amp\Promise
No documentation.
getCurrent — public function getCurrent()

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