Skip to main content
current_thread_id
std
1.97.0-nightly
(a5c825cd8 2026-04-14)
In std::
sync::
mpmc::
waker
std
::
sync
::
mpmc
::
waker
Function
current_
thread_
id
Copy item path
Source
pub fn current_thread_id() ->
usize
🔬
This is a nightly-only experimental API. (
mpmc_channel
#126840
)
Expand description
Returns a unique id for the current thread.