async-rayon

Crates.ioasync-rayon
lib.rsasync-rayon
version0.1.0
sourcesrc
created_at2024-07-04 11:22:01.42692
updated_at2024-07-04 11:22:01.42692
descriptionMix async code with CPU-heavy thread pools using Futures + Rayon
homepage
repositoryhttps://github.com/ArvinSKushwaha/tokio-rayon
max_upload_size
id1291611
size20,252
Arvin Kushwaha (ArvinSKushwaha)

documentation

README

async-rayon

Mix async code with CPU-heavy thread pools using Futures + Rayon

Documentation Build status Test coverage
crates.io Downloads Rust version
MIT license

Resources

TL;DR

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);
Commit count: 0

cargo fmt