18 references to AwaitableState
System.IO.Pipelines (18)
System\IO\Pipelines\PipeAwaitable.cs (18)
14private AwaitableState _awaitableState; 30_awaitableState = (completed ? AwaitableState.Completed : AwaitableState.None) | 31(useSynchronizationContext ? AwaitableState.UseSynchronizationContext : AwaitableState.None); 41public bool IsCompleted => (_awaitableState & (AwaitableState.Completed | AwaitableState.Canceled)) != 0; 43public bool IsRunning => (_awaitableState & AwaitableState.Running) != 0; 52var previousAwaitableState = _awaitableState; 74_awaitableState |= AwaitableState.Running; 82_awaitableState |= AwaitableState.Completed; 110_awaitableState &= ~AwaitableState.Completed; 128if ((_awaitableState & AwaitableState.UseSynchronizationContext) != 0 && 151_awaitableState |= AwaitableState.Canceled; 170bool isCanceled = (_awaitableState & AwaitableState.Canceled) == AwaitableState.Canceled; 172_awaitableState &= ~(AwaitableState.Canceled | AwaitableState.Running);