attach method

Object attach(
  1. Function listener
)

Attaches a function that will be called when the CancellationToken is canceled.

See Notifier.attach().

Implementation

Object attach(Function listener) => _notifier.attach(listener);