Skip to main content

Interface: CancellationScopeFunction()

ctx.cancellationScope(fn, options) and ctx.cancellationScope.current().

CancellationScopeFunction<T>(fn, options?): Promise<T>

ctx.cancellationScope(fn, options) and ctx.cancellationScope.current().

Type Parameters​

T​

T

Parameters​

fn​

(ctx) => Promise<T>

options?​

CancellationScopeOptions

Returns​

Promise<T>

Methods​

current()​

current(): CancellationScope

Returns​

CancellationScope