transaction<T> method

Future<T> transaction <T>(
  1. Future<T> action(
    1. Transaction txn
    ),
  2. {bool exclusive}
)

Calls in action must only be done using the transaction object using the database will trigger a dead-lock

Implementation

Future<T> transaction<T>(Future<T> Function(Transaction txn) action,
    {bool exclusive});