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