4 ms·
It is. One thing I don't get about the async story in Computation Expressions is the sudden need for you to think about return/return! Couldn't CE continue to
by peheje 5y ago
It is.
One thing I don't get about the async story in Computation Expressions is the sudden need for you to think about return/return!
Couldn't CE continue to use "return by last statement" and then do the CE-invoking version with exclamation mark in the end?
let private readUrls () =
async {
(IO.File.ReadAllLinesAsync "urls.txt" |> Async.AwaitTask)!
}
Would probably break something I haven't thought about.
Also the whole task vs async confusion is a bit difficult to wrap your head around. I understand .net6 introduced task {} CE, but you still need to have two stories in your head and convert back and forth and use async {}