Skip to content

Waiting for threadpool threads to drop #1470

Open
@PvdBerg1998

Description

@PvdBerg1998

I have some shared data in an Arc that I want to drop when my program exits.
However, when I drop the ThreadPool, this only sends a Close message to the worker threads but does not join them. This means I have no way to block until I know the threads/shared data is dropped.

Edit: Tokio's threadpool does not have this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions