taxjar / taxjar.net

Sales Tax API Client for .NET / C#
https://developers.taxjar.com/api/reference/?csharp
MIT License
23 stars 23 forks source link

Add `ConfigureAwait(false)` to awaited tasks to improve performance #39

Closed ScottRudiger closed 4 years ago

ScottRudiger commented 4 years ago

Best practice is to add ConfigureAwait(false) to awaited tasks in library code. This helps avoid deadlocks and improves performance by avoiding the overhead of continuing in the original context. See https://devblogs.microsoft.com/dotnet/configureawait-faq/ for further details.