Class: CancelToken

CancelToken(executor)

new CancelToken(executor)

A CancelToken is an object that can be used to request cancellation of an operation.

Parameters:
Name Type Description
executor function

The executor function.

Source:

Methods

(static) source()

Returns an object that contains a new CancelToken and a function that, when called,
cancels the CancelToken.

Source:

subscribe()

Subscribe to the cancel signal

Source:

throwIfRequested()

Throws a Cancel if cancellation has been requested.

Source:

unsubscribe()

Unsubscribe from the cancel signal

Source: