abort

Function abort 

Source
pub fn abort<E>(cause: E) -> Abort<E>
where E: Into<Error> + Send,
Expand description

Create a task which will immediately abort the computation with an error value of E.