Open
Description
It's sometimes useful to limit the number of threads used for certain tasks, and it would be convenient to have this built in to @spawn
, especially since Base
doesn't offer semaphores or custom thread pools
Threads.@spawn limit=4 do_work(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment