code: func (h *handler) New() chan struct{} {
  	// Lock the mutex.
  	h.mutex.Lock()
  	defer h.mutex.Unlock()
  
  	// Signal the stop request by closing the channel if open.
  	if !h.stopChanClosed {
  		close(h.stopChan)
  	}
  
  	// Create a new stop channel.
  	h.stopChan = make(chan struct{})
  
  	// Update the flag.
  	h.stopChanClosed = false
  
  	return h.stopChan
  }
docs: // New creates a new handler and stopps the previous handler if present.
  // A stop channel is returned, which is closed as soon as the handler is stopped.