//
pkg.gl
Category
github.com/heroku/x
cmdutil
signals
package
0.4.3
Repository:
https://github.com/heroku/x.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
45 SLOC
#
Functions
NewServer
NewServer returns a cmdutil.Server that returns from Run when any of the provided signals are received.
WithNotifyCancel
WithNotifyCancel creates a sub-context from the given context which gets canceled upon receiving any of the configured signals.