Created
November 16, 2010 17:17
-
-
Save anaisbetts/702106 to your computer and use it in GitHub Desktop.
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
// 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