TransactionDispatcher

An interface that can be implemented by a SqlDriver to provide a specific coroutine context for transactions.

Functions

Link copied to clipboard
abstract suspend fun <R> dispatch(transaction: suspend () -> R): R

Used by SuspendingTransacter to wrap calls to transaction and transactionWithResult, providing an opportunity to modify the coroutine context.