api / org.gradle.tooling / CancellationTokenSource / token

token

abstract fun token(): CancellationToken

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

Return
The cancellation token.