// AddWithKeyWithParam adds a shutdown hook with signal parameter
// with provided identificator (key).
AddWithKeyWithParam adds a shutdown hook with signal parameter
with provided identificator (key).
// AddWithKeyWithParam adds a shutdown hook with signal parameter // with provided identificator ( key ) .
func (s *Shutdown) AddWithKeyWithParam(key string, fn func(os.Signal)) {
	s.mutex.Lock()
	defer s.mutex.Unlock()
	s.hooks[key] = fn
}
func ( s * Shutdown ) AddWithKeyWithParam ( key string , fn func ( os . Signal ) ) { s . mutex . Lock ( ) defer s . mutex . Unlock ( ) s . hooks [ key ] = fn }
AddWithKeyWithParam adds a shutdown hook with signal parameter
with provided identificator (key).
AddWithKeyWithParam adds a shutdown hook with signal parameter with provided identificator ( key ) .