transaction

fun <T> transaction(statement: () -> T): T

Executes given statement in the scope of transaction.

Parameters

statement

to be executed in the scope of this transaction.