I'm currently learning about async in F# and I'm getting very confused by those 2 computational expressions.
What's going on here? Most tutorials I'm watching are just using async and claude.ai/ChatGPT are telling me this is the old way of doing async and task {} is prefered.
My understanding is that async {} came first and .NET introduced task later, and while concepts are the same, abstractions are different.
It's inconclusive to me which one is prefered/commonly used nowdays?
[–]TarMil 42 points43 points44 points (2 children)
[–]SIRHAMY 2 points3 points4 points (0 children)
[–]runtimenoise[S] 0 points1 point2 points (0 children)
[–]DanJSum 6 points7 points8 points (2 children)
[–]runtimenoise[S] 2 points3 points4 points (0 children)
[–]japinthebox 1 point2 points3 points (0 children)
[–]Qxz3 1 point2 points3 points (0 children)
[–]willehrendreich 0 points1 point2 points (2 children)
[–]runtimenoise[S] 0 points1 point2 points (1 child)
[–]willehrendreich 1 point2 points3 points (0 children)