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

No-size error

Traits

Functions

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