Skip to main content
Skip to main content

AsyncGenerator

admin/discounts.internal.AsyncGenerator

Type parameters

TobjectRequired
TReturnobjectRequired
TNextobjectRequired

Methods

[asyncIterator]

[asyncIterator](): AsyncGenerator<T, TReturn, TNext>

Returns

AsyncGenerator<T, TReturn, TNext>

AsyncGeneratorAsyncGenerator<T, TReturn, TNext>Required

next

next(...args): Promise<IteratorResult<T, TReturn>>

Parameters

args[] | [TNext]Required

Returns

Promise<IteratorResult<T, TReturn>>

PromisePromise<IteratorResult<T, TReturn>>Required

Overrides

AsyncIterator.next


return

return(value): Promise<IteratorResult<T, TReturn>>

Parameters

valueTReturn | PromiseLike<TReturn>Required

Returns

Promise<IteratorResult<T, TReturn>>

PromisePromise<IteratorResult<T, TReturn>>Required

Overrides

AsyncIterator.return


throw

throw(e): Promise<IteratorResult<T, TReturn>>

Parameters

eanyRequired

Returns

Promise<IteratorResult<T, TReturn>>

PromisePromise<IteratorResult<T, TReturn>>Required

Overrides

AsyncIterator.throw

Was this section helpful?