A cancellation token is passed to an asynchronous or long running operation to request cancellation, like cancelling a request for completion items because the user continued to type.
To get an instance of a CancellationToken use a CancellationTokenSource.
CancellationToken
Is true when the token has been cancelled, false otherwise.
true
false
An Event which fires upon cancellation.
VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
Generated by TypeDoc
A cancellation token is passed to an asynchronous or long running operation to request cancellation, like cancelling a request for completion items because the user continued to type.
To get an instance of a
CancellationToken
use a CancellationTokenSource.