Skip to main content

spawn

Function spawn 

Source
pub fn spawn(dashboards: Arc<dyn DashboardFeed>, devices: DeviceStore)
Expand description

Spawn the hardware display-nudge loop. Call once at startup with the DashboardFeed (for change events + the device→dashboard bindings) and the device store (to resolve a device’s panel surface). No-op-cheap when no devices are bound.

The feed’s subscribe_changes owns any reconnect/backoff (an out-of-process dashboards sidecar can restart); this loop just drains the channel and, when it closes, exits — a missed nudge is latency-only (the device re-polls on its own cadence regardless).