Skip to main content

Some people: "Eww, #Async #Rust is so complicated! I have to use `block_on` when I want to wrap async in sync!? Come on!"

C#: 😳 😶‍🌫️

Synchronous wrappers for #asynchronous methods:
learn.microsoft.com/en-us/dotn

"This "sync-over-async" pattern can seem straightforward, but it's a common source of deadlocks and performance problems."

The gist is: in C#, it can _deadlock_ in a lot of different scenarios:
- when you are in a single-threaded context
- after thread pool exhaustion

1/?

0 Boosts
0 Likes