[][src]Function tokio::prelude::task::is_in_task

pub fn is_in_task() -> bool

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