4 releases (stable)
2.1.0 | Apr 5, 2021 |
---|---|
2.0.0 | Apr 4, 2021 |
1.0.0 | Apr 2, 2021 |
0.1.0 | Apr 2, 2021 |
#360 in Asynchronous
28,549 downloads per month
Used in 24 crates
(8 directly)
15KB
250 lines
tokio-rayon
Mix async code with CPU-heavy thread pools using Tokio + Rayon
Resources
TL;DR
Sometimes, you're doing async stuff, and you also need to do CPU-heavy stuff. This library will help!
let nft = tokio_rayon::spawn_async(|| {
do_some_crypto_stuff()
}).await?;
assert_eq!(nft, ExpensiveNft);
Dependencies
~3–8.5MB
~72K SLoC