CancellationToken
Defined in: bcl/cancellation.mts:4
A cancellation token compatible with C# CancellationToken.
Constructors
Constructor
ts
new CancellationToken(): CancellationToken;Returns
CancellationToken
Properties
onCancellationRequested
ts
readonly onCancellationRequested: Event<[]>;Defined in: bcl/cancellation.mts:6
Occurs when the token is cancelled.
Accessors
isCancellationRequested
Get Signature
ts
get isCancellationRequested(): boolean;Defined in: bcl/cancellation.mts:9
Whether cancellation has been requested.
Returns
boolean
Methods
cancel()
ts
cancel(): void;Defined in: bcl/cancellation.mts:14
Signal cancellation.
Returns
void