Back to Exposed

withSuspendTransaction

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc.transactions.experimental/with-suspend-transaction.html

1.2.0853 B
Original Source

withSuspendTransaction

suspend fun <T> JdbcTransaction.withSuspendTransaction(context: CoroutineContext? = 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