AsyncEventHub
Represents a collection of asynchronous events.
Gets the number of events.
Initializes a new collection of asynchronous events.
Cancels all suspended callers.
Captures the state of the events.
Turns an event into the signaled state.
Turns the specified events into signaled state.
Turns the specified events into signaled state.
Turns all events into the signaled state.
Turns all events into the signaled state.
Turns all events to non-signaled state.
Turns the specified event into the signaled state and reset all other events.
Turns the specified events into signaled state and reset all other events.
Turns the specified events into signaled state and reset all other events.
public Task WaitAllAsync(ReadOnlySpan<int> eventIndexes, TimeSpan timeout, CancellationToken token = default)
Waits for all events.
Waits for all events.
Waits for all events.
Waits for all events.
public Task<int> WaitAnyAsync(ReadOnlySpan<int> eventIndexes, TimeSpan timeout, CancellationToken token = default)
Waits for any of the specified events.
Waits for any of the specified events.
Waits for any of the specified events.
Waits for any of the specified events.
Waits for the event represented by the specified index.
Waits for the event represented by the specified index.