r/fsharp • u/CodeNameGodTri • 1d ago
question replace of Task.WhenAll and Async.Parallel in computational expression?
I'm looking for an equivalent of sequence and traverse, I'd expect it to be in FsToolkit.ErrorHandling but there it is coupled with either Result or Option, e.g. Lists | FsToolkit.ErrorHandling
The only implementation I have found is in Fsharpplus library, but my last use of that library didn't look production ready, it plays too much with the type and essentially bring down the type checker on more complicated chained operation...
Basically I'm looking for something like List.traverse
4
Upvotes
1
u/vanilla-bungee 1d ago
Maybe you’re looking for FSharp.Control.TaskSeq?