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.
Namespace: Gemstone.ThreadingAssembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.141 -- Release Build+5e2ec463438f5de09767d41cb13e56e90c503d09
public bool TryFail(
TKey key,
Exception ex
)
Public Function TryFail (
key As TKey,
ex As Exception
) As Boolean
public:
bool TryFail(
TKey key,
Exception^ ex
)
function TryFail(key, ex);
- key TKey
- Key to fail.
- ex Exception
- Exception to signal to all waiters.
Booleantrue if the fail was successful; otherwise,
false if there were no waiters for the key.
ObjectDisposedException | Thrown if the instance has been disposed. |