Skip to main content

try_get

Function try_get 

Source
pub(crate) fn try_get() -> Option<Thread>
Expand description

Returns a thread ID for the current thread, not allocating one if needed. This avoids registering a thread-local destructor.