Skip to main content

request_shutdown

Function request_shutdown 

Source
pub fn request_shutdown()
Expand description

Request a graceful shutdown of the running server.

This sets the shutdown flag and, if a server handle has been stashed, calls unblock() to wake the request loop. Safe to call from any thread or signal handler.