func (runner *Runner) StopWorker(id string) error {
	select {
	case runner.stopc <- id:
		return nil
	case <-runner.tomb.Dead():
	}
	return ErrDead
}
// StopWorker stops the worker associated with the given id.
// It does nothing if there is no such worker.
//
// StopWorker returns ErrDead if the runner is not running.
StopWorker stops the worker associated with the given id.
It does nothing if there is no such worker.

StopWorker returns ErrDead if the runner is not running.
// StopWorker stops the worker associated with the given id . // It does nothing if there is no such worker . // // StopWorker returns ErrDead if the runner is not running .
func (runner *Runner) StopWorker(id string) error {
	select {
	case runner.stopc <- id:
		return nil
	case <-runner.tomb.Dead():
	}
	return ErrDead
}
func ( runner * Runner ) StopWorker ( id string ) error { select { case runner . stopc <- id : return nil case <- runner . tomb . Dead ( ) : } return ErrDead }
StopWorker stops the worker associated with the given id.
StopWorker stops the worker associated with the given id .