6 writes to _awaitableState
System.IO.Pipelines (6)
System\IO\Pipelines\PipeAwaitable.cs (6)
30
_awaitableState
= (completed ? AwaitableState.Completed : AwaitableState.None) |
74
_awaitableState
|= AwaitableState.Running;
82
_awaitableState
|= AwaitableState.Completed;
110
_awaitableState
&= ~AwaitableState.Completed;
151
_awaitableState
|= AwaitableState.Canceled;
172
_awaitableState
&= ~(AwaitableState.Canceled | AwaitableState.Running);
6 references to _awaitableState
System.IO.Pipelines (6)
System\IO\Pipelines\PipeAwaitable.cs (6)
41
public bool IsCompleted => (
_awaitableState
& (AwaitableState.Completed | AwaitableState.Canceled)) != 0;
43
public bool IsRunning => (
_awaitableState
& AwaitableState.Running) != 0;
52
var previousAwaitableState =
_awaitableState
;
63
Debug.Assert(previousAwaitableState ==
_awaitableState
, "The awaitable state changed!");
128
if ((
_awaitableState
& AwaitableState.UseSynchronizationContext) != 0 &&
170
bool isCanceled = (
_awaitableState
& AwaitableState.Canceled) == AwaitableState.Canceled;