Class WaitHandleHelper
- Namespace
- Arc4u
- Assembly
- Arc4u.dll
Helpers for WaitHandle.
public class WaitHandleHelper
- Inheritance
-
WaitHandleHelper
- Inherited Members
Methods
WaitOne(WaitHandle, TimeSpan, bool)
Same as WaitHandle.WaitOne but accept a timeout with a value equal to Int64.MaxValue!
public static bool WaitOne(WaitHandle waitHandle, TimeSpan timeout, bool exitSync)
Parameters
waitHandleWaitHandleThe WaitHandle
timeoutTimeSpanThe period
exitSyncbooltrue to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it afterward; otherwise, false.
Returns
- bool
true if the current instance receives a signal; otherwise, false.