Skip to main content

class FromIterator<T>

undocumented

Extends: AsyncFastIteratorBase<T>

Type parameters

NameDescription
Tundocumented

Properties

iterator

undocumented

Definition

readonly iterator: Iterator<T>;

return

undocumented

Definition

return?: () => MaybePromise<any>;

Overrides

AsyncFastIteratorBase.return

Methods

fastNext

undocumented

Definition

fastNext<O>(otherwise?: AsyncOptLazy<O>): Promise<T | O>;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
otherwiseAsyncOptLazy<O>

Overrides

AsyncFastIteratorBase.fastNext

next

Returns a promise resolving to the next IteratorResult.

Definition

next(): Promise<IteratorResult<T>>;

Overrides

AsyncFastIterator.next, AsyncFastIteratorBase.next