tokio-rayon

Crates.iotokio-rayon
lib.rstokio-rayon
version2.1.0
sourcesrc
created_at2021-04-02 06:43:35.891915
updated_at2021-04-05 06:37:32.540716
descriptionMix async code with CPU-heavy thread pools using Tokio + Rayon
homepage
repositoryhttps://github.com/andybarron/tokio-rayon
max_upload_size
id377354
size20,165
mio-core (github:tokio-rs:mio-core)

documentation

README

tokio-rayon

Mix async code with CPU-heavy thread pools using Tokio + 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 = tokio_rayon::spawn_async(|| {
  do_some_crypto_stuff()
}).await?;

assert_eq!(nft, ExpensiveNft);
Commit count: 19

cargo fmt