3 ms·
There's a `task {}` computation expression is the FSharpx.Extras library, which makes it much more pleasant to work with TPL libraries, and removes the performa
by sparkie 8y ago
There's a `task {}` computation expression is the FSharpx.Extras library, which makes it much more pleasant to work with TPL libraries, and removes the performance issues associated with using Async.AwaitTask etc.
- strmpnk 8y agoYes. That one works pretty well, though it still lags a bit behind the efficient state machines that C# generates which can also help avoid a lot of allocations and indirection in deep task chains. One step at a time though, it'd be great to see F# get a refresh around the TPL (even though it had Async first, it'd be better to align with the platform in the long run).
- platz 8y agoThis is the most current one https://github.com/rspeele/TaskBuilder.fs https://github.com/rspeele/TaskBuilder.fs that Giraffe also uses.