Skip to main content

New answers tagged

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" }
ubershmekel's user avatar
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 ...
Tomasz Modelski's user avatar
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.
GH DevOps's user avatar
  • 522
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 ...
JonasH's user avatar
  • 39.3k
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 ...
Fildor's user avatar
  • 16.5k
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.
user23332176's user avatar
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? ...
JonasH's user avatar
  • 39.3k

Top 50 recent answers are included