Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CancellationToken

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.

Hierarchy

  • CancellationToken

Index

Properties(2)

isCancellationRequested

isCancellationRequested: boolean

Is true when the token has been cancelled, false otherwise.

onCancellationRequested

onCancellationRequested: Event<any>

An Event which fires upon cancellation.

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网