suspendTransactionAsync
suspend fun <T> suspendTransactionAsync( context: CoroutineContext? = null, db: R2dbcDatabase? = null, transactionIsolation: IsolationLevel? = null, readOnly: Boolean? = null, statement: suspend R2dbcTransaction.() -> T): Deferred<T>
Creates a new TransactionScope
and returns its future result as an implementation of Deferred.
The TransactionScope
is derived from a new Transaction
and a given coroutine context, or the current CoroutineContext if no context is provided.