pub async fn atomically_aux<F, T, A, X>(aux: A, f: F) -> T where
    X: Aux,
    A: Fn() -> X,
    F: Fn(&mut X) -> StmResult<T>, 
Expand description

Like atomically, but this version also takes an auxiliary transaction system that gets committed or rolled back together with the STM transaction.