github.com/lingyao2333/mo-zero@v1.4.1/core/proc/stopper.go (about)

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