You’re right, that’s why I worded it as “if your code may be called from a synchronization context”. That said, the overhead is probably negligible (just a struct allocation and a few checks).

In our case, we still have some applications running on the old ASP.NET, so most of our shared libraries must keep using ConfigureAwait.

Software developer passionate about .NET, performance, and debugging

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store