Example #1
0
 public bool SetCompleted() => CompletedWaitHandle.Set();
Example #2
0
            /// <summary>
            /// Process the completion of a user-registered wait (call the callback).
            /// </summary>
            /// <param name="state">A <see cref="CompletedWaitHandle"/> object representing the wait completion.</param>
            private void CompleteWait(object state)
            {
                CompletedWaitHandle handle = (CompletedWaitHandle)state;

                handle.CompletedHandle.PerformCallback(handle.TimedOut);
            }
Example #3
0
 public bool WaitCompleted() => CompletedWaitHandle.WaitOne();