Function futures::task::is_in_task [−][src]
pub fn is_in_task() -> bool
Expand description
Return whether the caller is running in a task (and so can use task_local!).
pub fn is_in_task() -> bool
Return whether the caller is running in a task (and so can use task_local!).