KeyedSignalTKey, TResultTryFail Method

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.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.166 -- Release Build+55b93eb16d4a5b73f01a183dc992e29d98627d25
public bool TryFail(
	TKey key,
	Exception ex
)

Parameters

key  TKey
Key to fail.
ex  Exception
Exception to signal to all waiters.

Return Value

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

Exceptions

ObjectDisposedExceptionThrown if the instance has been disposed.

See Also