monitor

Function monitor 

Source
async fn monitor(
    hub: &Sender<Event>,
    shutdown: &ShutdownSignal,
) -> Result<(), Box<dyn Error>>