Tokio Thread Pool
A small wrapper around the tokio runtime supporting multithreading with max concurrency limits
Installation
API
use ThreadPool;
let my_pool = new;
// Spawn async tasks
let handle = my_pool.spawn; // return any value
// Spawn sync tasks
let handle = my_pool.spawn_blocking; // return any value
// Get result
let result = handle.await;