interface AsyncFastIterator<T>
An asynchronous iterator that extends the default AsyncIterator interface with methods for improved performance.
Type parameters
| Name | Description |
|---|---|
| T | the element type |
Methods
fastNext
Returns the next iterator value asynchronously, or the given otherwise AsyncOptLazy value instead.
fastNextotherwise AsyncOptLazy value instead.Definitions
fastNext(): MaybePromise<T | undefined>;
fastNext<O>(otherwise: AsyncOptLazy<O>): MaybePromise<T | O>;