Skip to main content

run_shutdown_sequence

Function run_shutdown_sequence 

Source
pub fn run_shutdown_sequence(
    listener: &mut ServerListener,
    supervisor: &ConnectionSupervisor,
    drain_timeout: Duration,
) -> Result<(), ServerError>
Expand description

Runs the graceful shutdown sequence after the handle has been activated.

ยงErrors

Returns ServerError when stop-accepting or durable flush fails.