
The highest tagged major version is
v6.
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Jul 29, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Handle(stderr io.Writer, callback func())
Handle calls the function "callback" when the sinal is sent.
This is useful to support canceling by signal.
Usage:
c, cancel := context.WithCancel(ctx)
go signal.Handle(os.Stderr, cancel)
...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.