KeyedSignalTKey, TResultTrySignal Method

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.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.141 -- Release Build+5e2ec463438f5de09767d41cb13e56e90c503d09
public bool TrySignal(
	TKey key,
	TResult result
)

Parameters

key  TKey
Key to signal.
result  TResult
Result to signal to all waiters.

Return Value

Boolean
true if the signal was successful; otherwise, false if there were no waiters for the key.

Exceptions

ObjectDisposedExceptionThrown if the instance has been disposed.

See Also