Skip to main content

run_supervised

Function run_supervised 

Source
pub async fn run_supervised<W: Watcher>(
    watcher: W,
    state: ServerState,
    health: TriggersHandle,
    shutdown: CancellationToken,
)
Available on crate features serve and triggers only.
Expand description

Run a watcher until shutdown fires. Never returns an error (logs instead).