Skip to main content
current_thread_id
std
1.96.0-nightly
(38c0de8dc 2026-02-28)
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.