18 references to State
System.Net.Quic (18)
System\Net\Quic\Internal\ValueTaskSource.cs (18)
25private State _state; 32_state = State.None; 41public bool IsCompleted => (State)Volatile.Read(ref Unsafe.As<State, byte>(ref _state)) == State.Completed; 48/// Tries to transition from <see cref="State.None"/> to <see cref="State.Awaiting"/>. Only the first call is able to do that so the result can be used to determine whether to invoke an operation or not. 62if (_state == State.None) 75State state = _state; 78if (state == State.None) 88_state = State.Awaiting; 105State state = _state; 107if (state != State.Completed) 109_state = State.Completed; 151/// Tries to transition from <see cref="State.Awaiting"/> to <see cref="State.Completed"/>. Only the first call is able to do that. 160/// Tries to transition from <see cref="State.Awaiting"/> to <see cref="State.Completed"/>. Only the first call is able to do that.