Looks async, behaves sync.
Why
CPU-bound work inside async methods.
Fix
await Task.Run(Compute);
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Looks async, behaves sync.
Why
CPU-bound work inside async methods.
Fix
await Task.Run(Compute);