async-executor icon indicating copy to clipboard operation
async-executor copied to clipboard

Add a way to batch spawn tasks

Open notgull opened this issue 1 year ago • 4 comments

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

notgull avatar Feb 13 '24 15:02 notgull