5 references to RunningWithPendingCancellation
System.Net.Sockets (5)
System\Net\Sockets\SocketAsyncContext.Unix.cs (5)
169
Debug.Assert((State)Volatile.Read(ref _state) is State.Running or State.
RunningWithPendingCancellation
, "Unexpected operation state");
182
Debug.Assert(state is (int)State.Running or (int)State.
RunningWithPendingCancellation
, $"Unexpected operation state: {(State)state}");
215
if (state is (int)State.Complete or (int)State.Canceled or (int)State.
RunningWithPendingCancellation
)
220
newState = (state == (int)State.Waiting ? (int)State.Canceled : (int)State.
RunningWithPendingCancellation
);
229
if (newState == (int)State.
RunningWithPendingCancellation
)