Available on all platforms
Handle to a callback which has been registered with a cancellation token.
close():Void
Stops the callback from being executed when the token is cancelled. If the token is already cancelled this function does nothing. This function is safe to call multiple times and is thread safe.