Skip to main content

New answers tagged

-1 votes

Difference between calling an async method and Task.Run an async method

you should not call method with -Async postfix with Task.Run()!! - thus you create async method twice in ThreadPool, that is unnecessary. - e.g. in var users = await _dbContext.Users.ToListAsync(); ...
JeeyCi's user avatar
  • 652
0 votes

How to limit the amount of concurrent async I/O operations?

Use Polly Rate Limiter, with Concurrency Limiter configuration you can create separate thread pools per use case you can add new tasks into the pool at runtime, during execution, not just at pool ...
Tomasz Modelski's user avatar

Top 50 recent answers are included