stopper.go 184 B

123456789101112131415
  1. package proc
  2. var noopStopper nilStopper
  3. type (
  4. // Stopper interface wraps the method Stop.
  5. Stopper interface {
  6. Stop()
  7. }
  8. nilStopper struct{}
  9. )
  10. func (ns nilStopper) Stop() {
  11. }