Skip to content

CancellationTokenSource

原文链接

https://microsoft.github.io/monaco-editor/docs.html#classes/CancellationTokenSource.html

constructor

  • 语法:new CancellationTokenSource(parent?): CancellationTokenSource
  • 参数:parent: CancellationToken

token

cancel

  • 语法:cancel(): void

dispose

  • 语法:dispose(cancel: boolean): void
  • 参数:cancel: boolean