Skip to main content

serve_until

Function serve_until 

Source
pub fn serve_until(
    listeners: Vec<Listener>,
    registry: Registry,
    healthz: Healthz,
    shutdown: Shutdown,
) -> Result<()>
Expand description

Serve until shutdown is triggered, then give in-flight requests up to 10s. Every listener is bound before any is served, so a bad one fails startup.