This allows quick tasks without dependencies that
need to run fast to run ASAP. This is mostly useful
for code formatting.
This fixes something that's been annoying me:
- Open your IDE workspace and its 20 open files
- Clangd spends 5 minutes parsing it all
- In the meantime you start to work
- Save a file, trigger format-on-save, which hangs because clangd is busy
- You're stuck waiting until clangd is done parsing your files before the formatting and save takes place
1 means if we get *any* concurrent requests they'll execute serially instead of in parallel.
I get the desire to limit this, and the idea that the tasks should be fast, but this seems like it'll be the bottleneck if the user hits "save all" after a rename hits 20 files in their editor.
We might as well set it to 4 or AsyncThreadsCount or something?