Project Name File Name Usage Source Code Link
corlib WaitHandleExtensions.cs ThreadPool.UnsafeRegisterWaitForSingleObject ( waitHandle, (o, timedOut) => { if (timedOut) tcs.TrySetException (new TimeoutException ()); else tcs.TrySetResult (o); }, state, timeout.AsThreadingTimeout (), true) Link To Source File
corlib WaitHandleExtensions.cs ThreadPool.UnsafeRegisterWaitForSingleObject ( waitHandle, (state, timedOut) => { if ((timedOut || executeOnlyOnce) && null != registration) registration.Unregister (waitHandle); if (timedOut) observer.OnError (new TimeoutException ()); else { if (executeOnlyOnce) observer.OnCompleted (); else observer.OnNext (Unit.Default); } }, null, timeout.AsThreadingTimeout (), executeOnlyOnce) Link To Source File