FlowPollingManager
Declaration
class FlowPollingManager<T>Summary
Manages Flow-based polling for session updates with automatic subscriber tracking and frame deduplication. This class abstracts the common pattern of:
- Creating a MutableSharedFlow
- Tracking active subscribers
- Starting/stopping polling coroutines based on subscriber count
- Deduplicating updates by frame ID or timestamp
Properties
| Name | Type | Summary |
|---|---|---|
| flow | Flow<T> | Public Flow that automatically manages polling lifecycle. |
Functions
| Name | Type | Summary |
|---|---|---|
| destroy | void | Cleans up resources. Should be called when the session is destroyed. |