Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsgetAsyncIterableWithCancel

Function: getAsyncIterableWithCancel()

getAsyncIterableWithCancel<T, TAsyncIterable, TReturn>(asyncIterable, onCancel): TAsyncIterable

Defined in: packages/utils/src/withCancel.ts:43

Type Parameters

T

T

TAsyncIterable

TAsyncIterable extends AsyncIterable<T, any, any>

TReturn

TReturn = any

Parameters

asyncIterable

TAsyncIterable

onCancel

(value?) => void | Promise<void>

Returns

TAsyncIterable