mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Make WorkerId public (#460)
This commit is contained in:
parent
24d99c029e
commit
dbefa67058
@ -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};
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user