package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 21, 2021
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.Set(os.Stderr, cancel)
...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.