Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SignalCtx context.Context = nil
the context to be notified to exit
Functions ¶
func AddExitRoutine ¶
func AddExitRoutine(r ExitRoutine)
func RegisterWithDuration ¶
Types ¶
type ExitController ¶
type ExitController struct { NotifyFlag bool // the flag to notify to exit JustExitFlag bool // exit flag CancelFn context.CancelFunc // context cancel function }
type ExitRoutine ¶
type ExitRoutine func()
Click to show internal directories.
Click to hide internal directories.