AsyncCorrelationSource<TKey, TValue>
Represents pub/sub synchronization primitive
when each event has unique identifier.
Initializes a new event correlation source.
Informs that the event is occurred.
Notifies all active listeners.
Raises the exception on all active listeners.
Cancels all active listeners.
public ValueTask<TValue> WaitAsync(TKey eventId, TimeSpan timeout, CancellationToken token = default)
Returns the task linked with the specified event identifier.
Returns the task linked with the specified event identifier.