run_with_health_check

Function run_with_health_check 

Source
pub async fn run_with_health_check<F, Fut>(
    health_check_port: Option<u16>,
    main_task: F,
) -> Result<(), Box<dyn Error>>
where F: FnOnce() -> Fut, Fut: Future<Output = Result<(), Box<dyn Error>>>,
Expand description

Run a bot with health check support This function combines the main bot logic with a health check server