Join Slack
Powered by
suspend fun <T> dbTransaction(database: Data...
# exposed
b
bitkid
05/13/2019, 9:27 AM
suspend fun <T> dbTransaction(database: Database, block: () -> T): T = withContext(
Dispatchers.IO
) { transaction(database) { block() } }
j
Jonathan Mew
05/14/2019, 3:54 PM
worth considering that transaction{} will retry up to 3 times by default - that might not be appropriate for your code
Open in Slack
Previous
Next