1 write to _source
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (1)
96internal CancellationToken(CancellationTokenSource? source) => _source = source;
8 references to _source
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (8)
65public bool IsCancellationRequested => _source != null && _source.IsCancellationRequested; 75public bool CanBeCanceled => _source != null; 87public WaitHandle WaitHandle => (_source ?? CancellationTokenSource.s_neverCanceledSource).WaitHandle; 291CancellationTokenSource? source = _source; 306public bool Equals(CancellationToken other) => _source == other._source; 325public override int GetHashCode() => (_source ?? CancellationTokenSource.s_neverCanceledSource).GetHashCode();