Colton Idle
03/05/2024, 3:35 AMsuspend fun doTransaction(
bufferedReader: BufferedReader,
onSuccess: suspend () -> Unit
) = withContext(Dispatchers.IO) {
var currentLine: String? = null
try {
myQueries.transaction {
afterCommit {
Sentry.captureMessage("Transaction completed with ${myQueries.getCount().executeAsOne()}")
onSuccess()
}
...
Colton Idle
03/05/2024, 3:40 AM