Interface AsyncIterator<T, TReturn, TNext>

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

Type Parameters

  • T

  • TReturn = any

  • TNext = undefined

Methods

  • Parameters

    • Optional e: any

    Returns Promise<IteratorResult<T, TReturn>>

Generated using TypeDoc