From 700813dab7692f86fdca05af289fa3291d662674 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 14 May 2025 19:27:57 -0400 Subject: [PATCH] Moves LocalCache bundler to the default thread --- .../main/java/com/vitorpamplona/amethyst/model/LocalCache.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt index c827973ff..3e8eeeef4 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt @@ -2858,7 +2858,7 @@ class LocalCacheFlow { val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view // Refreshes observers in batches. - private val bundler = BundledInsert(1000, Dispatchers.IO) + private val bundler = BundledInsert(1000, Dispatchers.Default) fun invalidateData(newNote: Note) { bundler.invalidateList(newNote) { bundledNewNotes ->