mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
Make WorkerId public (#460)
This commit is contained in:
committed by
Carl Lerche
parent
24d99c029e
commit
dbefa67058
@@ -149,4 +149,4 @@ pub use builder::Builder;
|
|||||||
pub use sender::Sender;
|
pub use sender::Sender;
|
||||||
pub use shutdown::Shutdown;
|
pub use shutdown::Shutdown;
|
||||||
pub use thread_pool::ThreadPool;
|
pub use thread_pool::ThreadPool;
|
||||||
pub use worker::Worker;
|
pub use worker::{Worker, WorkerId};
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ struct CurrentTask {
|
|||||||
can_block: Cell<CanBlock>,
|
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
|
/// This identifier is unique scoped by the thread pool. It is possible that
|
||||||
/// different thread pool instances share worker identifier values.
|
/// different thread pool instances share worker identifier values.
|
||||||
|
|||||||
Reference in New Issue
Block a user