A CancellationToken is a utility class that allows the binding of a cancel method to a method that returns a Promise. A CancellationToken must be "bound" by passing it into a method that accepts one. The token must be bound before calling cancel.
Invokes the bound cancellation behavior. This method will throw an error if the CancellationToken is not bound.
True if the CancellationToken is bound, false otherwise.
Creates an unbound CancellationToken.
A new CancellationToken that must be bound.