Skip to content

Instantly share code, notes, and snippets.

@kg
Created April 7, 2012 06:12
Show Gist options
  • Save kg/2325812 to your computer and use it in GitHub Desktop.
Save kg/2325812 to your computer and use it in GitHub Desktop.
async Task f(CancellationToken cancel)
{
string s1 = await new WebClient().DownloadStringTaskAsync(“http://a.com”, cancel);
string s2 = await new WebClient().DownloadStringTaskAsync(“http://b.com”, cancel);
string s3 = await new WebClient().DownloadStringTaskAsync(“http://c.com”, cancel);
return s1 + s2 + s3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment