package
Version:
v0.0.37
Opens a new window with list of versions in this module.
Published: Nov 2, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package signals provides a signal handler which is usable as a cmdutil.Server.
NewServer returns a cmdutil.Server that returns from Run
when any of the provided signals are received.
Run always returns a nil error.
WithNotifyCancel creates a sub-context from the given context which gets
canceled upon receiving any of the configured signals.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.