brson / stdx

The missing batteries of Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add num_cpus, threadpool to stdx

brson opened this issue · comments

For an example, create a threadpool using the threadpool crate, with the number of cpus on the system. Since that requires threadpool, might as well add threadpool to stdx as well.

Duplicate the example so both num_cpus and threadpool have the same example, similar to flate2 / tar.