Documentation
¶
Overview ¶
Package signal provides simple, semantic manipulation of the operating system's signal processing.
Index ¶
Constants ¶
View Source
const ( // SigCtx represents signal from cancelled context SigCtx = syscall.Signal(0xff) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notifier ¶
Notifier creates and listens to a specified system signal and calls a handler when the signal is received or when the context is cancelled.
Notifier will be closed when the context is cancelled and the handler can get an instance of SigCtx (number = 0xff).
methods of the Notifier can be safely called multiple times.
Click to show internal directories.
Click to hide internal directories.