I\'m new to F# and stuck in understanding async in F# from the perspective of a C# developer. Say having the following snippet in C#:
Just use FSharp.Control.FusionTasks
and you will have clear syntax without |> Async.AwaitTask
like
let httpClient = new System.Net.Http.HttpClient ()
let getAsync (url:string) =
async {
let! response = httpClient.GetAsync url
response.EnsureSuccessStatusCode () |> ignore
let! content = response.Content.ReadAsStringAsync ()
return content
}