Crates.io | async-rayon |
lib.rs | async-rayon |
version | 0.1.0 |
source | src |
created_at | 2024-07-04 11:22:01.42692 |
updated_at | 2024-07-04 11:22:01.42692 |
description | Mix async code with CPU-heavy thread pools using Futures + Rayon |
homepage | |
repository | https://github.com/ArvinSKushwaha/tokio-rayon |
max_upload_size | |
id | 1291611 |
size | 20,252 |
Mix async code with CPU-heavy thread pools using Futures + Rayon
Sometimes, you're doing async stuff, and you also need to do CPU-heavy stuff. This library will help!
let nft = async_rayon::spawn_async(|| {
do_some_crypto_stuff()
}).await?;
assert_eq!(nft, ExpensiveNft);