Function stm_core::atomically
[−]
[src]
pub fn atomically<T, F>(f: F) -> T where
F: Fn(&mut Transaction) -> StmResult<T>,
Run a function atomically by using Software Transactional Memory.
It calls to Transaction::with
internally, but is more explicit.