Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultNotifySignals = []os.Signal{ syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT, }
DefaultNotifySignals specifies signals that would cause the context to be canceled.
Functions ¶
This section is empty.
Types ¶
type Group ¶ added in v1.0.2
Group is a collection of functions that would be run concurrently. The context passed to each function is canceled when any of the signals in NotifySignals is received.
Click to show internal directories.
Click to hide internal directories.