tinypool-rs
tinypool is a simple thread pool implementation in Rust.
A thread pool is a collection of threads that can be used to execute jobs concurrently. The aim of this crate is to provide a simple, easy-to-use thread pool that can be used in any project.
Example (1)
use ThreadPool;
use ;
let mut threadpool = new.unwrap;
let counter = new;
for _ in 0..100
threadpool.join;
assert_eq!;
Example (2)
use ThreadPool;
use mpsc;
let mut threadpool = new.unwrap;
let = channel;
for i in 0..100
drop;
let mut sum = 0;
while let Ok = rx.recv
assert_eq!;