Reduce calendar refreshes (#1459)
* reduce calendar refreshes * Revert "reduce calendar refreshes" This reverts commit 1d8380d620b6706e5429d298745cf6563d48eb0e. * debounce
This commit is contained in:
parent
8985740d8c
commit
37e73c1dd4
@ -20,6 +20,7 @@ import kotlinx.coroutines.flow.Flow
|
|||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.combine
|
import kotlinx.coroutines.flow.combine
|
||||||
import kotlinx.coroutines.flow.combineTransform
|
import kotlinx.coroutines.flow.combineTransform
|
||||||
|
import kotlinx.coroutines.flow.debounce
|
||||||
import kotlinx.coroutines.flow.emitAll
|
import kotlinx.coroutines.flow.emitAll
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
@ -120,7 +121,7 @@ internal class CalendarRepositoryImpl(
|
|||||||
excludeCalendars = excludeCalendars,
|
excludeCalendars = excludeCalendars,
|
||||||
providers = providers,
|
providers = providers,
|
||||||
allowNetwork = false,
|
allowNetwork = false,
|
||||||
)
|
).debounce(500)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user