Skip to main content

serve_until_shutdown

Function serve_until_shutdown 

Source
pub async fn serve_until_shutdown(
    web_listener: TcpListener,
    ws_listener: TcpListener,
    router: Router,
    stdin_token: &CancellationToken,
)
Expand description

Serves the web and WebSocket listeners until one fails or stdin_token is cancelled.