Workerpool
A simple rust workerpool implementation that uses channels to synchronize the jobs. It can spawn a fixed number of worker threads, that waits for a job queue to consum.
- Use
use WorkerPool;
use channel;
use ;
let n_workers = 4;
let n_jobs = 8;
let pool = new;
let = channel;
let atx = new;
for _ in 0..n_jobs
assert_eq!;
- Test
$ cargo test