Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Created November 16, 2010 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anaisbetts/702106 to your computer and use it in GitHub Desktop.
Save anaisbetts/702106 to your computer and use it in GitHub Desktop.
// Block until I get the result
// Equivalent of Task.Wait
var output = ValidateUriAsync("http://foo.com").First();
// Don't block, but notify me when we produce a result
// Equivalent(*) to Task.ContinueWith
ValidateUriAsync("http://bar.com").Subscribe(result => {
Console.WriteLine(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment