Amp\Internal\PrivateIterator classPrivateIterator implementsAmp\Iterator

Wraps an Iterator instance that has public methods to emit, complete, and fail into an object that only allows access to the public API methods.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Amp\Iterator$iterator)
No documentation.
Type Parameter Description Default Value
Amp\Iterator $iterator 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.