Function std::task::failing

pub fn failing() -> bool

True if the running task has failed