Project Name File Name Usage Source Code Link
mono-reactive TaskObservableExtensions.cs new Task (stat => { TResult result = default (TResult); Exception error = null; var wait = new ManualResetEvent (false); var dis = new SingleAssignmentDisposable (); dis.Disposable = observable.Subscribe ( v => result = v, ex => { dis.Dispose (); error = ex; wait.Set (); }, () => { dis.Dispose (); wait.Set (); } ); wait.WaitOne (); if (error != null) throw error; return result; }, state, cancellationToken) Link To Source File
GothicCheckers AIEngine.cs new Task(GetBestMove, state, CTS.Token) Link To Source File