Skip to main content
Skip to main content

AsyncGenerator

Type parameters

TobjectRequired
TReturnobjectRequired
TNextobjectRequired

Methods

[asyncIterator]

Returns

AsyncGeneratorAsyncGenerator<T, TReturn, TNext>Required

next

Parameters

args[] | [TNext]Required

Returns

PromisePromise<IteratorResult<T, TReturn>>Required

return

Parameters

valueTReturn | PromiseLike<TReturn>Required

Returns

PromisePromise<IteratorResult<T, TReturn>>Required

throw

Parameters

eanyRequired

Returns

PromisePromise<IteratorResult<T, TReturn>>Required
Was this section helpful?