Skip to main content

run_subsystem

Function run_subsystem 

Source
pub async fn run_subsystem(
    host: Arc<dyn GotifyHost>,
    cfg: GotifyConfig,
    shutdown: Receiver<()>,
)
Expand description

The Gotify subsystem pump: run the reconnecting stream task and translate its events into host state + message routing. Holds the host for its lifetime - the host impl is the weak boundary, so a workspace-backed host degrades to no-ops once the workspace drops; exits when shutdown fires or the stream task ends, dropping its own handle to the stream task so that exits too.