token

abstract fun token(): CancellationToken

Returns a token associated with this CancellationTokenSource. Always returns the same instance.

Return

The cancellation token.