Skip to main content

serve_bound_with_shutdown

Function serve_bound_with_shutdown 

Source
pub async fn serve_bound_with_shutdown<C>(
    listener: TcpListener,
    state: AppState<C>,
    shutdown: impl Future<Output = ()> + Send + 'static,
) -> Result<(), Error>
where C: ComputeBackend + Clone + Send + Sync + 'static,
Expand description

Serve the RDF4J HTTP facade on an already-bound listener until shutdown resolves or the listener fails.

Same drain semantics as serve_with_shutdown: stops accepting once shutdown fires, then waits for outstanding requests; long-lived kernel WebSocket tunnels never “finish”, so a bounded exit races and drops this future.