try_id

Function try_id 

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

Gets running task’s id. None if no reside in managed async task.

§Cautions

See cautions of Id.