Files
tokio/tokio-threadpool/src/lib.rs
T

39 lines
773 B
Rust
Raw Normal View History

//! A work-stealing based thread pool for executing futures.
2018-03-30 15:28:44 -07:00
#![doc(html_root_url = "https://docs.rs/tokio-threadpool/0.1.2")]
#![deny(warnings, missing_docs, missing_debug_implementations)]
extern crate tokio_executor;
extern crate futures;
2018-03-07 02:49:01 +09:00
extern crate crossbeam_deque as deque;
extern crate num_cpus;
extern crate rand;
#[macro_use]
extern crate log;
2018-03-13 13:57:35 -07:00
#[cfg(feature = "unstable-futures")]
extern crate futures2;
pub mod park;
mod builder;
mod callback;
mod config;
#[cfg(feature = "unstable-futures")]
mod futures2_wake;
mod notifier;
2018-04-03 22:35:59 -07:00
mod pool;
mod sender;
mod shutdown;
mod shutdown_task;
mod task;
mod thread_pool;
mod worker;
pub use builder::Builder;
pub use sender::Sender;
pub use shutdown::Shutdown;
pub use thread_pool::ThreadPool;
pub use worker::Worker;