Function abort

Source
pub fn abort<T, E1, E2>(e: E1) -> StmResult<T, E2>
where E1: Into<E2>,
Expand description

The primary verbs to interact with STM transactions. Abort the transaction with an error.

Use this with atomically_or_err and a method that returns StmResult instead of Stm.