diff --git a/tokio-threadpool/src/lib.rs b/tokio-threadpool/src/lib.rs index c37d4179f..9b59edea6 100644 --- a/tokio-threadpool/src/lib.rs +++ b/tokio-threadpool/src/lib.rs @@ -149,4 +149,4 @@ pub use builder::Builder; pub use sender::Sender; pub use shutdown::Shutdown; pub use thread_pool::ThreadPool; -pub use worker::Worker; +pub use worker::{Worker, WorkerId}; diff --git a/tokio-threadpool/src/worker/mod.rs b/tokio-threadpool/src/worker/mod.rs index 66c9170cf..17752ddf4 100644 --- a/tokio-threadpool/src/worker/mod.rs +++ b/tokio-threadpool/src/worker/mod.rs @@ -70,7 +70,7 @@ struct CurrentTask { can_block: Cell, } -/// Identifiers a thread pool worker. +/// Identifies a thread pool worker. /// /// This identifier is unique scoped by the thread pool. It is possible that /// different thread pool instances share worker identifier values.