executeOnce

fun <T> executeOnce(transaction: Transaction<T>): T

Executes a Transaction. If the transaction fails due to deadlock, it is not retried. This method should therefore only be used if the Transaction.execute method has side effects.

Return

the result returned by Transaction.execute.

Parameters

transaction

the transaction.