DEV Community

Discussion on: F# - C# Interop

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

Nice post it is pretty clear and to the point, I like it!

If you have a chance it would be nice to add a section about task expressions which are meant for C# <-> F# async interoperability

Collapse
 
jkone27 profile image
jkone27

indded i also thought , in latest F# you can just use

task { ... }
Enter fullscreen mode Exit fullscreen mode

instead of

async { ... } |> Async.StartAsTask
Enter fullscreen mode Exit fullscreen mode

task state machine is also in some cases more performant than async from what i understood

Collapse
 
amedeov profile image
Amedeo

Please see the reply above, hopefully I can share something soon! Thank you!

Collapse
 
amedeov profile image
Amedeo

Thank you!

I stated in the post that "Please note that all the observations listed on this page are valid for .NET 5 and below."

One of my colleagues worked on the same examples using .NET 6 and task - I'll share the link to the article once/if he decides to publish it!