public sealed class KeyedSignal<TKey, TResult> : IDisposable,
IAsyncDisposable
Public NotInheritable Class KeyedSignal(Of TKey, TResult)
Implements IDisposable, IAsyncDisposable
generic<typename TKey, typename TResult>
public ref class KeyedSignal sealed : IDisposable,
IAsyncDisposable
KeyedSignalTKey, TResult | Creates a new instance of the KeyedSignalTKey, TResult class. |
PendingKeysCount | Gets the number of pending keys that have waiters. |
Dispose | Releases all the resources used by the KeyedSignalTKey, TResult object. |
DisposeAsync | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Fail | Fails all current waiters for key with ex. New waiters added after this call for same key will await a subsequent signal/fail. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Signal | Signals all current waiters for key with result. New waiters added after this call for same key will await a subsequent signal/fail. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
TryFail | Tries to fail all current waiters for key with ex. New waiters added after this call for same key will await a subsequent signal/fail. |
TrySignal | Tries to signal all current waiters for key with result. New waiters added after this call for same key will await a subsequent signal/fail. |
Wait | Waits synchronously for the specified key to be signaled or failed. Multiple concurrent waiters on the same key complete together. |
WaitAsync | Asynchronously waits for key to be signaled (or failed). Multiple concurrent waiters on the same key complete together. |