AsyncEnumerable icon indicating copy to clipboard operation
AsyncEnumerable copied to clipboard

ConfigureAwait(false) in asp.net _core_ not needed

Open rocklan opened this issue 4 years ago • 0 comments

Great library by the way! Super helpful! Thank you so much :)

Just a small thing BTW, Step 3 of the implementation documentation says:

To avoid performance degradation and possible dead-locks in ASP.NET or WPF applications (or any SynchronizationContext-dependent environment), you should always put ConfigureAwait(false) in your await statements

Apaprently in asp.net core this is no longer needed:

https://blog.stephencleary.com/2017/03/aspnetcore-synchronization-context.html

It won't do any harm, but it might be useful to note that this is only necessary in aspnet framework or wpf apps.

rocklan avatar Mar 21 '21 23:03 rocklan