Versions in this module Expand all Collapse all v1 v1.0.1 Jan 31, 2024 v1.0.0 Jan 31, 2024 Changes in this version + var SignalCtx context.Context = nil + func AddExitRoutine(r ExitRoutine) + func IfNeedToExit() bool + func Join() + func NotifyToExit() + func Prestop() + func Register() error + func RegisterWithDuration(duration time.Duration) error + func WaitForSignal(interval time.Duration) bool + type ExitController struct + CancelFn context.CancelFunc + JustExitFlag bool + NotifyFlag bool + type ExitRoutine func()