Registry / async / futures-cpupool

futures-cpupool

JSON →
library0.1.8rscratesunverified

A thread pool that executes work and returns futures for results.

# Cargo.toml [dependencies] futures-cpupool = "0.1.8"
INSTALL
IMPORT
SIG · FUTURES-CPUPOOL
F
futures-cpupool
asyncrustv0.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CpuPool
use futures_cpupool::CpuPool;

Spawns a blocking computation on a thread pool.

use futures_cpupool::CpuPool; let pool = CpuPool::new(4); let future = pool.spawn_fn(|| Ok::<_, ()>(42));
Debug
Known issues
breakingCpuPool is deprecated in favor of futures::executor::ThreadPool
fix
Use futures::executor::ThreadPool instead
affects: >=0.2.0
Upgrade
Version history
0.1.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
futures-cpupool — cargo add futures-cpupool · libregistry