top | item 37130779

(no title)

qlkjwenf | 2 years ago

C# introduced async/await like 20 years ago and java still doesn't have it yet... I hope in the next 20 years they will finally find time to implement this feature.

discuss

order

pjmlp|2 years ago

The feature that required David Fowler from ASP.NET team to write a set of guidelines because everyone still uses it wrong, and had the team experiementing with Go and Java approach during last Summer, and they aren't adding it because it is too complex to retrofit?

kaba0|2 years ago

Thank god. Async/await is an okay tradeoff for Rust, which lacks a managed runtime, but it is simply a bad abstraction for managed languages, where the runtime can automagically do the right thing for you without user involvement.

ysleepy|2 years ago

async/await is syntactic sugar for futures/callbacks/statemachines in .net. kotlin does this for coroutines on the jvm.

I think green threads are a much better was to solve the problem as its much easier to reason about and debug.