Crate taskpile

source ·
Expand description

TaskPile

A simple threadpool implementation. Use TaskPile::new to create the pool of a sepcific size and add work to it.

If a panic occurs, the implementation spanws a new thread to take the place of the panicked one.

Dropping the TaskPile instance will wait for active and queued work to finish before cleaning up resources

Structs

  • A pile of work that needs to be done concurrently (aka a thread pool)

Enums

  • Events emmitted by the TaskPile. Useful whenever you want a better understanding of what the thread pool is doing