Skip to content

Instantly share code, notes, and snippets.

@ritalin
Created February 14, 2012 17:01
Show Gist options
  • Save ritalin/1828133 to your computer and use it in GitHub Desktop.
Save ritalin/1828133 to your computer and use it in GitHub Desktop.
Rx test for mono
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