Documentation ¶
Overview ¶
Package signal offers a utility for handling signal interrupts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSignal ¶
WithSignal returns a cancelable context which ends on signal interrupt.
The first interrupt cancels the context, allowing callers to terminate gracefully. Upon receiving a second interrupt the process is terminated with exit code 130 (128 + SIGINT)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.