I would like to run some async workflow, then wait for it to finish before printing some results, example:
let dowork n =
async {
do printfn \"wo
Well answering my own question seems lame, but this seems to work. Someone come up with something better so I can award them the answer :)
let dowork n =
async {
do printfn "work %d" n
}
let creatework() =
[1..5] |> Seq.map dowork |> Async.Parallel |> Async.RunSynchronously
creatework()
printfn "finished"
It gives various output, but "finished" so far is always last...