A Cancellation ticket.

A special ticket that allows coordination of cancellation operations between a requestor and worker.

Constructors

Accessors

  • get isCancellationRequested(): boolean
  • Whether a cancellation has been requested.

    Returns boolean

Methods

  • Requests that the coordinated operation be canceled and causes isCancellationRequested to be set.

    Returns Promise<void>

    A promise that resolves to a bool indicating whether the cancel was successful.