Versions in this module Expand all Collapse all v1 v1.2.0 Jun 27, 2025 Changes in this version + var ErrSignal = errors.New("signal error") + func ContextHandler(ctx context.Context) (execute func() error, interrupt func(error)) type SignalError + func (e SignalError) As(target interface{}) bool + func (e SignalError) Is(err error) bool v1.1.0 Jan 8, 2020 Changes in this version + func SignalHandler(ctx context.Context, signals ...os.Signal) (execute func() error, interrupt func(error)) + type SignalError struct + Signal os.Signal + func (e SignalError) Error() string v1.0.0 Nov 14, 2017 Changes in this version + type Group struct + func (g *Group) Add(execute func() error, interrupt func(error)) + func (g *Group) Run() error