Conflate TimeZoneMonitor emissions

Co-authored-by: Alex Vanyo <vanyo@google.com>
pull/1187/head
Tomáš Mlynarič 8 months ago committed by GitHub
parent 0b3ece1bb9
commit 1e925ed99f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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