runTransaction<T> abstract method
Runs delegate
inside a transaction.
If delegate
returns without throwing an exception, the transaction
is committed and the return value is passed through as return value
of this method.
If delegate
throws an exception, the transaction is rolled back
and the exception is rethrown.
Implementation
Future<T> runTransaction<T>(
Future<T> Function(DatabaseContext context) delegate);