Moves LocalCache bundler to the default thread

This commit is contained in:
Vitor Pamplona
2025-05-14 19:27:57 -04:00
parent 6367e9ddc9
commit 700813dab7
@@ -2858,7 +2858,7 @@ class LocalCacheFlow {
val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view
// Refreshes observers in batches.
private val bundler = BundledInsert<Note>(1000, Dispatchers.IO)
private val bundler = BundledInsert<Note>(1000, Dispatchers.Default)
fun invalidateData(newNote: Note) {
bundler.invalidateList(newNote) { bundledNewNotes ->