Function stm::retry [] [src]

pub fn retry<T>() -> StmResult<T>

call retry, to abort an operation. It takes another path of an Transaction::or or blocks until any variable changes.

Examples

use stm::*;
let infinite_retry: i32 = atomically(|_| retry());