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>>;
}
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
Hierarchy
- AsyncIterator (View Summary)
Methods
next
- next(...__namedParameters: [] | [TNext]): Promise<IteratorResult<T, TReturn>>
Parameters
- ...__namedParameters: [] | [TNext]
Returns Promise<IteratorResult<T, TReturn>>
Optional
return
- return(
value?: TReturn | PromiseLike<TReturn>,
): Promise<IteratorResult<T, TReturn>> Parameters
Optional
value: TReturn | PromiseLike<TReturn>
Returns Promise<IteratorResult<T, TReturn>>
Optional
throw
- throw(e?: any): Promise<IteratorResult<T, TReturn>>
Parameters
Optional
e: any
Returns Promise<IteratorResult<T, TReturn>>