Skip to content

optional daemonic threads for trio.to_thread.run_sync #2046

@graingert

Description

@graingert

daemon threads skip cleanup at interpreter shutdown and don't play well with subinterpreters

trio should maintain two pools of threads, daemonic and non-daemonic so trio can push that choice onto users

eg: trio.to_thread.run_sync(fn, daemon=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions