mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
16 lines
184 B
Go
16 lines
184 B
Go
package proc
|
|
|
|
var noopStopper nilStopper
|
|
|
|
type (
|
|
// Stopper interface wraps the method Stop.
|
|
Stopper interface {
|
|
Stop()
|
|
}
|
|
|
|
nilStopper struct{}
|
|
)
|
|
|
|
func (ns nilStopper) Stop() {
|
|
}
|