tokio-threadpool 0.1.6

A task scheduler backed by a work-stealing thread pool.
Documentation
extern crate futures;
extern crate tokio_threadpool;
extern crate env_logger;

use tokio_threadpool::*;
use futures::*;
use futures::sync::oneshot;

pub fn main() {
    let _ = ::env_logger::init();

    let pool = ThreadPool::new();
    let tx = pool.sender().clone();

    let res = oneshot::spawn(future::lazy(|| {
        println!("Running on the pool");
        Ok::<_, ()>("complete")
    }), &tx);

    println!("Result: {:?}", res.wait());
}