pub fn is_in_task() -> bool
Return whether the caller is running in a task (and so can use task_local!).