token property

CancellationToken get token

Gets the CancellationToken associated with this CancellationTokenSource.

Implementation

CancellationToken get token {
  _throwIfDisposed();
  return CancellationToken.fromSource(this);
}