Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> async/await guarantees you won't have deadlocks

You will get them in .NET and C++, because they map to real threads being shared across tasks.

There is even a FAQ maintained by .NET team regarding gotchas like not calling ConfigureAwaitable with the right thread context in some cases where it needs to be explicitly configured, like a task moving between foreground and background threads.



(it arguably needs to be updated, so that people stop writing single line 'return await' methods which waste performance for no reason (thankfully some analyzers do flag this))


thank you! i haven't tried using .net more than a tiny bit




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: