pub fn atomically<T>(f: impl FnOnce() -> T) -> T
Executes the given function as an atomic operation.
In case of a failure, the whole operation will be re-executed during retry.