Skip to main content

run_watchdog_with_shutdown

Function run_watchdog_with_shutdown 

Source
pub async fn run_watchdog_with_shutdown(
    checker: HealthChecker,
    shutdown: Receiver<()>,
)
Expand description

Run watchdog with a shutdown signal

Same as run_watchdog but can be stopped via a shutdown receiver.

ยงArguments

  • checker - Health checker instance
  • shutdown - Receiver that signals when to stop