AsyncManualResetEvent
Represents asynchronous version of ManualResetEvent.
Indicates whether this event is set.
Initializes a new asynchronous reset event in the specified state.
Initializes a new asynchronous reset event in the specified state.
Sets the state of this event to non signaled, causing consumers to wait asynchronously.
Sets the state of the event to signaled, allowing one or more awaiters to proceed.
Sets the state of the event to signaled, allowing one or more awaiters to proceed;
and, optionally, reverts the state of the event to initial state.
Turns caller into idle state until the current event is set.
Turns caller into idle state until the current event is set.
public ValueTask<bool> WaitAsync<T>(Predicate<T> condition, T arg, TimeSpan timeout, CancellationToken token = default)
Suspends the caller until this event is set.
Suspends the caller until this event is set.
public ValueTask<bool> WaitAsync<T1, T2>(Func<T1, T2, bool> condition, T1 arg1, T2 arg2, TimeSpan timeout, CancellationToken token = default)
Suspends the caller until this event is set.
public ValueTask WaitAsync<T1, T2>(Func<T1, T2, bool> condition, T1 arg1, T2 arg2, CancellationToken token = default)
Suspends the caller until this event is set.