diff options
| author | 2023-03-10 15:28:10 -0500 | |
|---|---|---|
| committer | 2023-03-13 13:06:13 +0000 | |
| commit | 93c92189c25dda0ea694a50905645fa493e50d81 (patch) | |
| tree | 2593d5176771eefdd5f58e906615939dcd28294f /api/api.go | |
| parent | 18271d623220377a1dbf5dd15dffb7ce89a387b9 (diff) | |
[Sb refactor] Fix missed telephony callback events
This change implements a new flow operator, `coalesce`, whichs allows
for us to design a backpressure strategy in
`MobileConnectionRepositoryImpl` such that we never drop a
`TelephonyCallback` event if it is the only one of its type.
In practice, this means that if we have a late subscriber to a field
which is backed by the `callbackEvents` flow, we'll never miss data that
would otherwise have been dropped due to unrelated callbacks before the
subscriber shows up.
Test: tests in statusbar/pipeline/mobile
Test: MobileConnectionTelephonySmokeTests
Fixes: 272784824
Change-Id: Id57cc4047d9290581e6b8eae813136ebfb8eb3be
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions