// Reset cancels all hooks.
Reset cancels all hooks.
// Reset cancels all hooks .
func (s *Shutdown) Reset() {
	s.mutex.Lock()
	defer s.mutex.Unlock()
	for key := range s.hooks {
		delete(s.hooks, key)
	}
}
func ( s * Shutdown ) Reset ( ) { s . mutex . Lock ( ) defer s . mutex . Unlock ( ) for key := range s . hooks { delete ( s . hooks , key ) } }
Reset cancels all hooks.
Reset cancels all hooks .