1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#![forbid(unsafe_code)]
#![warn(
rust_2018_idioms,
unreachable_pub,
// missing_docs,
missing_debug_implementations,
)]
mod thread_pool;
pub mod runtime {
pub use crate::thread_pool::{
builder::Builder,
enter::EnterGuard,
handle::{Handle, TryCurrentError},
runtime::Runtime,
};
}
pub mod task {
pub use crate::thread_pool::task::{spawn, yield_now, JoinError, JoinHandle};
}
pub use task::spawn;