New answers tagged task
1 vote
npm run test task in VSCode suddenly injecting with yarn
My .vscode/settings.json that worked was: { "npm.autoDetect": "on", "npm.scriptRunner": "bun" }
0 votes
How to limit the maximum number of parallel tasks in C#
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 ...
Best practices
1 vote
0 replies
0 views
Cancel multiple tasks after a period of time
Don't use Task.Run, you're only making it more complex. It's really not doing anything because your method is async and it's returning a Task.
Best practices
6 votes
0 replies
0 views
Cancel multiple tasks after a period of time
I do not really understand what the problem is, nor how your code is intended to work. I would suggest creating a regular Q&A-style question, and including some information like: What is your ...
Best practices
5 votes
0 replies
0 views
Cancel multiple tasks after a period of time
This shouldn't even compile. You have two members with the exact same signature (at the time of writing this). The example is lacking enough context and this is a really bad fit for the "best ...
Best practices
0 votes
0 replies
0 views
Cancel multiple tasks after a period of time
cancellation does work, but the duration for an individual run is not paused: in other words, it doesn't even take 200 ms.
Best practices
3 votes
0 replies
0 views
Cancel multiple tasks after a period of time
Are you sure this should not be a regular question? I do not see what this has to do with "best practices". If cancellation do not work, what is the program doing when you try to cancel it? ...
Top 50 recent answers are included
Related Tags
task × 8651c# × 4463
multithreading × 1335
asynchronous × 1334
async-await × 1264
.net × 831
task-parallel-library × 719
android × 422
java × 415
python × 329
wpf × 268
parallel-processing × 264
scheduler × 193
concurrency × 182
gradle × 164
scheduled-tasks × 160
javafx × 150
asp.net × 148
celery × 145
windows × 143
winforms × 139
exception × 121
javascript × 106
c++ × 102
vb.net × 102