mirror of
https://github.com/nabbar/golib.git
synced 2025-10-24 00:03:19 +08:00
Package Context : add package for config context
This commit is contained in:
@@ -101,8 +101,9 @@ func (c *ctxGinTonic) CancelOnSignal(s ...os.Signal) {
|
||||
select {
|
||||
case <-sc:
|
||||
c.c()
|
||||
return
|
||||
case <-c.Done():
|
||||
|
||||
return
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user