Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignalHandler ¶
type SignalHandler struct {
// contains filtered or unexported fields
}
func New ¶
func New(signals ...os.Signal) *SignalHandler
func (*SignalHandler) RegisterCallback ¶
func (sh *SignalHandler) RegisterCallback(fn Callback)
func (*SignalHandler) Wait ¶
func (sh *SignalHandler) Wait()
Wait block until all callback's have been called
Click to show internal directories.
Click to hide internal directories.