Documentation ¶
Index ¶
- func DefaultContextSignalHandler(_ os.Signal, stop context.CancelCauseFunc)
- func Notify(c chan os.Signal, sig ...os.Signal) chan os.Signal
- func NotifyContext(parent context.Context, handler ContextSignalHandler, signals ...os.Signal) (ctx context.Context, stop context.CancelCauseFunc)
- type ContextSignalHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultContextSignalHandler ¶
func DefaultContextSignalHandler(_ os.Signal, stop context.CancelCauseFunc)
func NotifyContext ¶
func NotifyContext(parent context.Context, handler ContextSignalHandler, signals ...os.Signal) (ctx context.Context, stop context.CancelCauseFunc)
Types ¶
type ContextSignalHandler ¶
type ContextSignalHandler func(signal os.Signal, stop context.CancelCauseFunc)
Click to show internal directories.
Click to hide internal directories.