package
Version:
v1.6.1
Opens a new window with list of versions in this module.
Published: Oct 24, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Handle(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)
defer cancel()
go signal.Set(cancel)
...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.