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)
41public bool IsCompleted => (_awaitableState & (AwaitableState.Completed | AwaitableState.Canceled)) != 0; 43public bool IsRunning => (_awaitableState & AwaitableState.Running) != 0; 52var previousAwaitableState = _awaitableState; 63Debug.Assert(previousAwaitableState == _awaitableState, "The awaitable state changed!"); 128if ((_awaitableState & AwaitableState.UseSynchronizationContext) != 0 && 170bool isCanceled = (_awaitableState & AwaitableState.Canceled) == AwaitableState.Canceled;