pub fn spawn_poller(registry: Arc<AgentProcessRegistry>) -> JoinHandle<()> ⓘExpand description
Spawn the polling task. It holds the registry weakly and ends once the
registry’s last Arc is dropped (host shutdown). ~2s cadence balances
latency (new processes show up fast) with CPU overhead (job queries are
cheap but not free).