sync-threadpool-0.0.2 doesn't have any documentation.
A synchronized threadpool. This threadpool allows submitting new jobs only if a worker is currently idle. This is most useful, for search-like tasks: Imagine you need to find some value in a multithreaded manner. Once the value is found, of course you don't want to submit more search jobs but probably want to use the workers for something else.
Examples
This example demonstrates finding square-roots by brute forcing. The roots are found by sending search-ranges to the threadpool.
use ThreadPool;
use channel;
let n_workers = 4;
const TARGET_SQUARE: u64 = 1 << 50;
let mut pool = new;
// channel to send back results
let = channel;
for start in 0..0xffff_ffff_ffff