transaction abstract method

Future<void> transaction(
  1. Future<void> work(
    1. Transaction transaction
    )
)

Functional way to execute a transaction. This method takes care of creating and releasing the transaction.

Implementation

Future<void> transaction(Future<void> work(Transaction transaction));