MiniPool
This is a stupid thread pool for running parallel cpu-bound tasks.
No have dependencies.
How to use?
minipooll = "*"
Contributing
Contributions are always welcome!
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 = "*"
Contributions are always welcome!