Back to Exposed

newSuspendedTransaction

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc.transactions.experimental/new-suspended-transaction.html

1.2.01.0 KB
Original Source

newSuspendedTransaction

suspend fun <T> newSuspendedTransaction(context: CoroutineContext? = null, db: Database? = null, transactionIsolation: Int? = null, readOnly: Boolean? = null, statement: suspend JdbcTransaction.() -> T): T

Deprecated

" This function will be removed in future releases. Replace with suspendTransaction() call. suspendTransaction() doesn't allow to pass context as a parameter, use withContext() if you need to use transaction with custom context.

Generated by Dokka © 2026 Copyright