Interface MaybeAsyncIterator<T, TReturn, TNext>

An Iterator that may be async.

interface MaybeAsyncIterator {
    next(...args): MaybePromise<IteratorResult<T, TReturn>>;
    return?(value?): MaybePromise<IteratorResult<T, TReturn>>;
    throw?(e?): MaybePromise<IteratorResult<T, TReturn>>;
}

Type Parameters

  • T

  • TReturn = any

  • TNext = unknown

Methods

Generated using TypeDoc