F Sharp (programming language): Difference between revisions

Content deleted Content added
Shr2012 (talk | contribs)
Asynchronous programming: Updated with task expressions.
Shr2012 (talk | contribs)
Line 464:
let fetchUrlAsync (url:string) = // string -> Task<string>
task {
letuse client = new HttpClient()
let! response = client.GetAsync(url)
let! content = response.Content.ReadAsStringAsync()