Paul Woitaschek
11/11/2019, 4:11 PMsealed class Action
. Now I have sth like:
suspend fun run(actions : List<Action>){
withContext(<http://Dispatchers.IO|Dispatchers.IO>){
db.transaction {
actions.forEach { action ->
when (action) {
is Action.Delete -> queries ...
}
}
}
}
}
Does that make sense?Dominaezzz
11/11/2019, 4:22 PMPaul Woitaschek
11/11/2019, 4:25 PM