debugCreateToken function

  1. @visibleForTesting
CancellationToken debugCreateToken()

Test-only access to construct a bare token.

Production code always obtains tokens from a CancellationTokenSource.

Implementation

@visibleForTesting
CancellationToken debugCreateToken() => CancellationToken._();