# README
interrupt
Handle shutdowns cleanly and enable hot reload
# Packages
No description provided by the author
# Functions
AddHandler adds a handler to call when a SIGINT (Ctrl+C) is received.
GoroutineDump returns a string with the current goroutine dump in order to show what's going on in case of timeout.
Listener listens for interrupt signals, registers interrupt callbacks, and responds to custom shutdown signals as required.
Request programmatically requests a shutdown.
Requested returns true if an interrupt has been requested.
RequestRestart sets the reset flag and requests a restart.
No description provided by the author
# Variables
HandlersDone is closed after all interrupt handlers run the first time an interrupt is signaled.
= true.
ShutdownRequestChan is a channel that can receive shutdown requests.
# Structs
No description provided by the author