Interface AsyncIterator<T, TReturn, TNext>
Type Parameters
T
TReturn = any
TNext = undefined
Methods
next
- next(...args): Promise<IteratorResult<T, TReturn>>
Parameters
Rest
...args: [] | [TNext]
Returns Promise<IteratorResult<T, TReturn>>
Optional
return
- return(value?): Promise<IteratorResult<T, TReturn>>
Returns Promise<IteratorResult<T, TReturn>>
Optional
throw
- throw(e?): Promise<IteratorResult<T, TReturn>>
Returns Promise<IteratorResult<T, TReturn>>