Interface: CancellationToken
Defined in: packages/extension-api/src/extension-api.d.ts:1305
A cancellation token is passed to an asynchronous or long running operation to request cancellation.
Properties
isCancellationRequested
isCancellationRequested:
boolean
Defined in: packages/extension-api/src/extension-api.d.ts:1309
Is true
when the token has been cancelled, false
otherwise.
onCancellationRequested
onCancellationRequested:
Event
<any
>
Defined in: packages/extension-api/src/extension-api.d.ts:1315
An Event which fires upon cancellation.