Interface ReadableStreamAsyncIterator<T>

interface ReadableStreamAsyncIterator<T> {
    [asyncIterator](): ReadableStreamAsyncIterator<T>;
    next(...args): Promise<IteratorResult<T, any>>;
    return?(value?): Promise<IteratorResult<T, any>>;
    throw?(e?): Promise<IteratorResult<T, any>>;
}

Type Parameters

  • T

Hierarchy

Methods

  • Parameters

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

    Returns Promise<IteratorResult<T, any>>

  • Parameters

    • Optional value: any

    Returns Promise<IteratorResult<T, any>>