Shutdown is used to graceful exit. It will close all idle connections on the server, but will not change the underlying pollers. Argument: ctx set the waiting deadline, after which an error will be returned, but will not force the closing of connections in progress.
(ctx context.Context)
| 32 | // Argument: ctx set the waiting deadline, after which an error will be returned, |
| 33 | // but will not force the closing of connections in progress. |
| 34 | Shutdown(ctx context.Context) error |
| 35 | } |
| 36 | |
| 37 | /* The Connection Callback Sequence Diagram |
no outgoing calls