package
1.1.1
Repository: https://github.com/jjxxs/gopher-tools.git
Documentation: pkg.go.dev

# Functions

GetShutdownContext decorates a given context and returns it together with a cancel-function.
Handle invokes given handler when a matching os.Signal is received.
HandleOneShot invokes given handler only once when one of the provided signals is received.
No description provided by the author
RegisterOnShutdownCallback registers a function that is called when the contexts cancel-function is called.
WaitForShutdownContext blocks until all registered callbacks were called.

# Interfaces

Handler invokes registered callbacks when a matching os.Signal is received.