1 stable release
Uses new Rust 2024
1.0.0 | May 4, 2025 |
---|
#36 in #thread-pool
145 downloads per month
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!