interface AsyncIterator {
    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

Hierarchy

Methods

  • Parameters

    • Rest ...args: [] | [TNext]

    Returns Promise<IteratorResult<T, TReturn>>

  • Parameters

    Returns Promise<IteratorResult<T, TReturn>>

  • Parameters

    • Optional e: any

    Returns Promise<IteratorResult<T, TReturn>>