mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 19:46:57 +02:00
BugFix on bundled update dispatchers.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user