#thread-pool #thread #pool #nodependencies

minipooll

Pool threads without dependencies

1 stable release

Uses new Rust 2024

1.0.0 May 4, 2025

#36 in #thread-pool

Download history 104/week @ 2025-04-30 32/week @ 2025-05-07 9/week @ 2025-05-14

145 downloads per month

Apache-2.0

9KB
121 lines

MiniPool

This is a stupid thread pool for running parallel cpu-bound tasks.

No have dependencies.

fn main() {
    let mut pool = MiniPooll::new();
    pool.spawn(|| {
        std::thread::sleep(Duration::from_secs(2))
    });

    pool.join_all();
}

How to use?

[dependencies]
minipooll = "*"

Contributing

Contributions are always welcome!

License

Apache

No runtime deps