This site is currently undergoing maintenance, so instances of "RelativityOne" may still be present. You may also experience 404 errors, search disruptions, and temporary style changes.

Last date modified: 2026-Sep-09

Interface: ICancellationToken

Cancellation token that can be used to listen for and handle cancellation requests

Properties

isCancellationRequested

readonlyisCancellationRequested: boolean

Whether or not cancellation has been requested

Methods

offCancellation()

offCancellation(handler): void

Unregisters an event handler that runs when token cancellation is requested

Parameters

• handler: EventHandler

Handler to unregister

Returns

void


onCancellation()

onCancellation(handler): void

Registers an event handler that runs when token cancellation is requested

Parameters

• handler: EventHandler

Handler to register

Returns

void


throwIfCancellationRequested()

throwIfCancellationRequested(): void

Throws an OperationCancelledError if cancellation has been requested

Returns

void

Feedback