code: func (w *filePoller) sendErr(e error, chClose <-chan struct{}) error {
  	select {
  	case w.errors <- e:
  	case <-chClose:
  		return fmt.Errorf("closed")
  	}
  	return nil
  }
docs: // sendErr publishes the specified error to the errors channel