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