10 references to Completed
System.Net.Quic (10)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (10)
58
public bool IsCompleted => (State)Volatile.Read(ref Unsafe.As<State, byte>(ref _state)) == State.
Completed
;
108
if (state is State.None or State.Ready or State.
Completed
)
123
/// Gets a <see cref="Task"/> that will transition to a completed state with the last transition of this source, i.e. into <see cref="State.
Completed
"/>.
153
if (state == State.
Completed
)
170
_state = final ? State.
Completed
: State.Ready;
218
/// Tries to transition from <see cref="State.Awaiting"/> to either <see cref="State.Ready"/> or <see cref="State.
Completed
"/>, depending on the value of <paramref name="final"/>.
221
/// <param name="final">Whether this is the final transition to <see cref="State.
Completed
" /> or just a transition into <see cref="State.Ready"/> from which the task source can be reset back to <see cref="State.None"/>.</param>
229
/// Tries to transition from <see cref="State.Awaiting"/> to either <see cref="State.Ready"/> or <see cref="State.
Completed
"/>, depending on the value of <paramref name="final"/>.
232
/// <param name="final">Whether this is the final transition to <see cref="State.
Completed
" /> or just a transition into <see cref="State.Ready"/> from which the task source can be reset back to <see cref="State.None"/>.</param>
270
_state = State.
Completed
;