Crate unblock

Source
Expand description

A thread pool for isolating blocking in async programs.

With mt feature the default number of threads (set to number of cpus) can be altered by setting BLOCK_THREADS environment variable with value.

Structs§

Error
No-size error
Join

Traits§

Fun
Val

Functions§

unblock
Runs unblock code on a thread pool and return a future
unblocks
Runs multiple unblock code on a thread pool and return futures in order