Skip to content

Example for multi-threaded priority executor which doesn't run foreverΒ #156

@abique

Description

@abique

Hi,

I'm wondering how to implement a simple multi-threaded priority executor which doesn't live forever?

// This creates the threads as well, without using static variables
let ex = PriorityExecutor::new()?;

// do some work

// This will wait for all tasks to be completed and join the threads
drop(ex);

Thank you πŸ‘

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