// WithGracePeriod sets maximum time to wait for gracefully shutdown.
WithGracePeriod sets maximum time to wait for gracefully shutdown.
// WithGracePeriod sets maximum time to wait for gracefully shutdown .
func WithGracePeriod(d time.Duration) Option {
	return func(s *Server) {
		s.gracePeriod = d
	}
}
func WithGracePeriod ( d time . Duration ) Option { return func ( s * Server ) { s . gracePeriod = d } }
WithGracePeriod sets maximum time to wait for gracefully shutdown.
WithGracePeriod sets maximum time to wait for gracefully shutdown .