Skip to main content

current_thread_id

Function current_thread_id 

Source
pub fn current_thread_id() -> Result<ThreadId, TaskError>
Expand description

Returns the generation-bearing identity of the calling scheduler thread.