Skip to main content

spawn_background_service_status_probe

Function spawn_background_service_status_probe 

Source
fn spawn_background_service_status_probe(
    started: &AtomicBool,
    service_status: &Arc<Mutex<Option<ServiceIssue>>>,
    update_tx: &UpdateFanout,
    prober: Box<dyn Fn() -> Pin<Box<dyn Future<Output = Option<ServiceIssue>> + Send>> + Send + Sync>,
)
Expand description

Kick off the statuspage probe on the tokio runtime: one fetch, then the answer is held. A caller with no runtime gets a warn and holds no status rather than a task nobody would run.