refactor, and add comments to describe graceful shutdown (#564)

This commit is contained in:
Kevin Wan
2021-03-14 08:51:10 +08:00
committed by GitHub
parent 155e6061cb
commit fcd15c9b17
4 changed files with 4 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ func (e *Server) AddRoute(r Route, opts ...RouteOption) {
}
// Start starts the Server.
// Graceful shutdown is enabled by default.
// Use proc.SetTimeToForceQuit to customize the graceful shutdown period.
func (e *Server) Start() {
handleError(e.opts.start(e.ngin))
}