async-executor
async-executor copied to clipboard
Add a way to batch spawn tasks
For some workloads many tasks are spawned at a time. This requires locking and unlocking the executor's inner lock every time you spawn a task. If you spawn many tasks this can be expensive.
This commit exposes a new "spawn_many" method on both types. This method allows the user to spawn an entire set of tasks at a time.
Closes #91