Hacker News new | ask | show | jobs
by codeape 1724 days ago
I hope the author at some point adds the section on ConfigureAwait. I've seen code bases where the devs have added .ConfigureAwait(false) to all invokations "just to make sure".
3 comments

In an event loop model, I've never felt the need to reach for ConfigureAwait(false). Maybe there's certain operations that could be sped up a bit by letting them resume on any thread, but generally I want to be sure that the event loop is executing my code. There wouldn't be much of a point to using an event loop if nothing ever returned back to executing on it.
That's what you're meant to do!
Someday…