mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 18:00:00 +08:00
initial import
This commit is contained in:
14
core/proc/stopper.go
Normal file
14
core/proc/stopper.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package proc
|
||||
|
||||
var noopStopper nilStopper
|
||||
|
||||
type (
|
||||
Stopper interface {
|
||||
Stop()
|
||||
}
|
||||
|
||||
nilStopper struct{}
|
||||
)
|
||||
|
||||
func (ns nilStopper) Stop() {
|
||||
}
|
||||
Reference in New Issue
Block a user