Commit Graph
1 Commits
Author SHA1 Message Date
Peter Friese d250c11a04 feat(RemoteConfig): add AsyncSequence for config updates (#15352)
Introduces a new `configUpdates` property to `RemoteConfig`, providing an `AsyncSequence` for consuming real-time configuration updates. 

This modern, Swift Concurrency-native API offers a cleaner alternative to the existing closure-based listener, allowing developers to handle config updates using `for await` loops.

Key changes:
- Added `RemoteConfig.configUpdates` returning `RemoteConfigUpdateSequence`.
- Implemented `RemoteConfigUpdateSequence` with a built-in iterator that manages the lifecycle of the underlying listener.
- Aligned implementation with the recently merged Firestore AsyncSequence patterns.
- Comprehensive unit tests verified for listener registration, event yielding, and graceful termination.
2026-03-31 18:21:21 +02:00