Documentation ¶
Overview ¶
Package shutdown contains data and methods to support safe shutdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShutdownOnSigint ¶
func ShutdownOnSigint()
Blocks and requests shutdown on receiving SIGINT, unblocks on completion of shutdown.
Types ¶
type ShutdownId ¶
type ShutdownId uint64
A unique ID to represent a process' shutdown listener request.
func AddShutdownListener ¶
func AddShutdownListener(routineName string) (ShutdownId, chan bool)
Records that a module will be waiting for shutdown. Returns A channel to listen for shutdown requests.
Click to show internal directories.
Click to hide internal directories.