18 references to State
System.Net.Quic (18)
System\Net\Quic\Internal\ValueTaskSource.cs (18)
25
private
State
_state;
32
_state =
State
.None;
41
public 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.
62
if (_state ==
State
.None)
75
State
state = _state;
78
if (state ==
State
.None)
88
_state =
State
.Awaiting;
105
State
state = _state;
107
if (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.