runAtomically<T> abstract method

Future<T> runAtomically<T>(
  1. String label,
  2. Future<T> body()
)

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);