News for hackers. Stuff that matters.
Re:.NET 5.0 by asyncawaaait on Tuesday November 10, 2020 @02:27PM (#25050452)
How does async/await introduce complexity where threading wouldn’t?

In my experience, the complexity is vastly reduced by not having to implement tricky asynchronous APIs (Task Paralell, thread pools, BackgroundWorker, etc).

Re:.NET 5.0 by cm2187 on Tuesday November 10, 2020 @02:50PM (#25050839)
no, vs blocking the UI thread. Which is perfectly fine the vast majority of the cases, unless you are running something long running.
Re:.NET 5.0 by huzaif on Tuesday November 10, 2020 @03:33PM (#25051518)
You are trying to something slightly complex. I don't see how one could make it any easier from a language design perspective and staying idiomatic to the language.

Go: Goroutines make you wire the "stop" scenario on your own (channel close). Rust: Hold on to your future and drop() it. C#: Pass a cancellation token and call Cancel()

All seem reasonable and stay within what they think their developers will be able to pick up and run with.