Logo Orsak

CancellationScope Module

Creates the ScopeProviders that begin CancellationScopes.

Functions and values

Function or value Description

linkedTo token

Full Usage: linkedTo token

Parameters:
Returns: ScopeProvider<CancellationScope>

Begins cancellation scopes linked to token, such as a request's RequestAborted or a service's stopping token: for the root environment, which then needs no source of its own.

token : CancellationToken

The token the scopes are linked to.

Returns: ScopeProvider<CancellationScope>

Type something to start searching.