Make WorkerId public (#460)

This commit is contained in:
Stjepan Glavina 2018-07-02 22:34:08 +02:00 committed by Carl Lerche
parent 24d99c029e
commit dbefa67058
2 changed files with 2 additions and 2 deletions

View File

@ -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};

View File

@ -70,7 +70,7 @@ struct CurrentTask {
can_block: Cell<CanBlock>,
}
/// 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.