current_thread_id
std
1.92.0-nightly
(5c7ae0c7e 2025-10-02)
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.