Interface: CancellationScopeOptions
Option for constructing a CancellationScope
Properties
cancellable
cancellable:
boolean
If false, prevent outer cancellation from propagating to inner scopes, Activities, timers, and Triggers, defaults to true. (Scope still propagates CancelledFailure thrown from within).
parent?
optionalparent?:CancellationScope| typeofNO_PARENT
An optional CancellationScope (useful for running background tasks).
The NO_PARENT symbol is reserved for the root scope.
timeout?
optionaltimeout?:Duration
Time in milliseconds before the scope cancellation is automatically requested