2020-07-26 17:09:05 +08:00
|
|
|
package proc
|
|
|
|
|
|
|
|
var noopStopper nilStopper
|
|
|
|
|
|
|
|
type (
|
2021-02-22 10:07:39 +08:00
|
|
|
// Stopper interface wraps the method Stop.
|
2020-07-26 17:09:05 +08:00
|
|
|
Stopper interface {
|
|
|
|
Stop()
|
|
|
|
}
|
|
|
|
|
|
|
|
nilStopper struct{}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (ns nilStopper) Stop() {
|
|
|
|
}
|