Skip to main content

try_id

Function try_id 

Source
pub fn try_id() -> Option<Id>
Expand description

The id of the task this code runs in, None outside a task (in block_on’s own future, or on a blocking-pool thread).