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]
- "[asyncIterator]"(): ReadableStreamAsyncIterator<T>
Returns ReadableStreamAsyncIterator<T>
next
- next(...__namedParameters: [] | [unknown]): Promise<IteratorResult<T, any>>
Parameters
- ...__namedParameters: [] | [unknown]
Returns Promise<IteratorResult<T, any>>
Optional
return
- return(value?: any): Promise<IteratorResult<T, any>>
Parameters
Optional
value: any
Returns Promise<IteratorResult<T, any>>
Optional
throw
- throw(e?: any): Promise<IteratorResult<T, any>>
Parameters
Optional
e: any
Returns Promise<IteratorResult<T, any>>