New answers tagged task-parallel-library
-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(); ...
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 ...
Top 50 recent answers are included
Related Tags
task-parallel-library × 6297c# × 5224
.net × 1857
async-await × 1506
multithreading × 1304
asynchronous × 874
task × 719
parallel-processing × 490
tpl-dataflow × 420
.net-4.0 × 237
c#-4.0 × 231
parallel.foreach × 225
wpf × 224
concurrency × 162
exception × 153
asp.net × 140
winforms × 137
.net-4.5 × 109
vb.net × 106
threadpool × 101
c#-5.0 × 89
.net-core × 77
asp.net-mvc × 76
system.reactive × 76
asp.net-web-api × 73