pub fn spawn_status_publisher(
bus: Arc<EventBus>,
state: Arc<ArcSwap<ServerState>>,
conn_count: Arc<AtomicUsize>,
project: String,
review_count: Arc<AtomicUsize>,
mention: MentionHandle,
ide_buffers: IdeBuffers,
changed: Arc<Notify>,
rt: &Handle,
)Expand description
Spawn the status publisher task. Wakes on changed (start/stop, a
connection open/close, or a buffer (un)registering), rebuilds the content,
and republishes it to each registered buffer only when it differs from
what that buffer last showed; a removed buffer is cleared (empty content).