It would be useful to add an extension method For on TaskBuilder to be able to do for loops over IAsyncEnumerable in tasks.
let mySeq =
taskSeq {
for i in 0..9 do yield i
}
let myTask =
task {
for x in mySeq do // <-- This is currently not possible.
printfn $"{x}"
}
It would be useful to add an extension method
ForonTaskBuilderto be able to doforloops overIAsyncEnumerablein tasks.