mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-25 16:01:09 +02:00
Reduces full screen updates to once a second.
This commit is contained in:
parent
f2e9fbebea
commit
fa7ccdfc20
@ -1273,7 +1273,7 @@ class LocalCacheLiveData {
|
||||
val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view
|
||||
|
||||
// Refreshes observers in batches.
|
||||
private val bundler = BundledInsert<Note>(300, Dispatchers.IO)
|
||||
private val bundler = BundledInsert<Note>(1000, Dispatchers.IO)
|
||||
|
||||
fun invalidateData(newNote: Note) {
|
||||
bundler.invalidateList(newNote) { bundledNewNotes ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user