Interface ReadableStreamAsyncIterator<T>
interface ReadableStreamAsyncIterator<T> {
[asyncIterator](): ReadableStreamAsyncIterator<T>;
next(...__namedParameters: [] | [unknown]): Promise<IteratorResult<T, any>>;
return?(value?: any): Promise<IteratorResult<T, any>>;
throw?(e?: any): Promise<IteratorResult<T, any>>;
}
[asyncIterator](): ReadableStreamAsyncIterator<T>;
next(...__namedParameters: [] | [unknown]): Promise<IteratorResult<T, any>>;
return?(value?: any): Promise<IteratorResult<T, any>>;
throw?(e?: any): Promise<IteratorResult<T, any>>;
}
Type Parameters
Hierarchy
- AsyncIteratorObject<T, BuiltinIteratorReturn, unknown>
- ReadableStreamAsyncIterator ()
Index
Methods
Methods
[asyncIterator]
- [async
Iterator] (): ReadableStreamAsyncIterator<T> Returns ReadableStreamAsyncIterator<T>
next
- next(...__namedParameters): Promise<IteratorResult<T, any>>
Parameters
Rest
...__namedParameters: [] | [unknown]
Returns Promise<IteratorResult<T, any>>
Optional
return
- return(value?): Promise<IteratorResult<T, any>>
Parameters
Optional
value: any
Returns Promise<IteratorResult<T, any>>
Optional
throw
- throw(e?): Promise<IteratorResult<T, any>>
Parameters
Optional
e: any
Returns Promise<IteratorResult<T, any>>