runAtomically<T> abstract method
Runs body as one atomic unit over everything this invocation may
write: if it throws, every write is rolled back; if it returns, each
resource written holds one undo entry for the whole of it.
Implementation
Future<T> runAtomically<T>(String label, Future<T> Function() body);