Created
February 14, 2012 17:01
-
-
Save ritalin/1828133 to your computer and use it in GitHub Desktop.
Rx test for mono
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void TestStart() { | |
var disposer = Observable | |
.Start(() => { | |
System.Threading.Thread.Sleep(3000); | |
return 110; | |
}) | |
.Subscribe( | |
i => Console.WriteLine(string.Format("OnNext: {0}", i)), | |
() => Console.WriteLine("Completed TestStart") | |
); | |
disposer.Dispose(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment