Function tokio::prelude::task::is_in_task

source ·
pub fn is_in_task() -> bool
Expand description

Return whether the caller is running in a task (and so can use task_local!).