BugFix on bundled update dispatchers.

This commit is contained in:
Vitor Pamplona
2023-08-22 12:23:26 -04:00
parent 66b5fad6c2
commit 1121cfcaf9

View File

@@ -35,7 +35,7 @@ class BundledUpdate(
return
}
scope.launch {
scope.launch(dispatcher) {
try {
onUpdate()
delay(delay)
@@ -77,7 +77,7 @@ class BundledInsert<T>(
return
}
scope.launch(Dispatchers.IO) {
scope.launch(dispatcher) {
try {
val mySet = mutableSetOf<T>()
queue.drainTo(mySet)