Conflate TimeZoneMonitor emissions

Co-authored-by: Alex Vanyo <vanyo@google.com>
pull/1837/head
Tomáš Mlynarič 2 years ago committed by GitHub
parent fa16457b5e
commit 64a325ae6c

@ -88,6 +88,7 @@ internal class TimeZoneBroadcastMonitor @Inject constructor(
context.unregisterReceiver(receiver)
}
}
.conflate()
.flowOn(ioDispatcher)
// Sharing the callback to prevent multiple BroadcastReceivers being registered
.shareIn(appScope, SharingStarted.WhileSubscribed(5_000), 1)

Loading…
Cancel
Save