transactionWithResult

open suspend override fun <R> transactionWithResult(noEnclosing: Boolean, bodyWithReturn: suspend SuspendingTransactionWithReturn<R>.() -> R): R

Starts a Transaction and runs bodyWithReturn in that transaction.

Throws

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