Skip to content

Add Threads.@spawn option to limit threads in specific contexts #51779

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

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsmultithreadingBase.Threads and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions