xorpse / tokio-rayon

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

Home Page:https://docs.rs/tokio-rayon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

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

https://docs.rs/tokio-rayon

License:MIT License


Languages

Language:Rust 100.0%