Interface AsyncIterator<T, TReturn, TNext>

    interface AsyncIterator<T, TReturn = any, TNext = any> {
        next(
            ...__namedParameters: [] | [TNext],
        ): Promise<IteratorResult<T, TReturn>>;
        return(
            value?: TReturn | PromiseLike<TReturn>,
        ): Promise<IteratorResult<T, TReturn>>;
        throw(e?: any): Promise<IteratorResult<T, TReturn>>;
    }

    Type Parameters

    • T
    • TReturn = any
    • TNext = any
    Hierarchy

    Methods