Does hyper::Server's graceful shutdown include a mechanism to return a completion signal?

AFAIK a reasonable mechanism for graceful shutdown would be that a stop signal is sent to the context, AND after the shutdown the context sends a completion signal. For cases like stopping by pressing ctrl-c, without a completion signal, the whole application will not know when to stop, especially if there are contexts other than hyper::Server.

You know that shutdown has completed once the server future returns.

1 Like