News for hackers. Stuff that matters.
Re:Asynchronous Programming in C# by codeape on Friday September 24, 2021 @10:30AM (#28642923)
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".
Re:Asynchronous Programming in C# by ziml77 on Friday September 24, 2021 @02:37PM (#28646217)
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.
Re:Asynchronous Programming in C# by rawling on Friday September 24, 2021 @11:51AM (#28644070)
That's what you're meant to do!
Re:Asynchronous Programming in C# by davidfowl on Friday September 24, 2021 @09:18PM (#28649535)
Someday…