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

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