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