func (catacomb *Catacomb) ErrDying() error {
	select {
	case <-catacomb.tomb.Dying():
		return dyingError{catacomb}
	default:
		return errors.New("bad catacomb ErrDying: still alive")
	}
}
// ErrDying returns an error that can be used to Kill *this* catacomb without
// overwriting nil errors. It should only be used when the catacomb is already
// known to be dying; calling this method at any other time will return a
// different error, indicating client misuse.
ErrDying returns an error that can be used to Kill *this* catacomb without
overwriting nil errors. It should only be used when the catacomb is already
known to be dying; calling this method at any other time will return a
different error, indicating client misuse.
// ErrDying returns an error that can be used to Kill * this * catacomb without // overwriting nil errors . It should only be used when the catacomb is already // known to be dying ; calling this method at any other time will return a // different error indicating client misuse .
func (catacomb *Catacomb) ErrDying() error {
	select {
	case <-catacomb.tomb.Dying():
		return dyingError{catacomb}
	default:
		return errors.New("bad catacomb ErrDying: still alive")
	}
}
func ( catacomb * Catacomb ) ErrDying ( ) error { select { case <- catacomb . tomb . Dying ( ) : return dyingError { catacomb } default : return errors . New ( " " ) } }
ErrDying returns an error that can be used to Kill *this* catacomb without
overwriting nil errors.
ErrDying returns an error that can be used to Kill * this * catacomb without overwriting nil errors .