transaction

open override fun transaction(noEnclosing: Boolean, body: TransactionWithoutReturn.() -> Unit)

Starts a Transaction and runs body in that transaction.

Throws

if noEnclosing is true and there is already an active Transaction on this thread.