package
Version:
v0.0.0-...-4f67001
Opens a new window with list of versions in this module.
Published: Feb 12, 2025
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 Add(f ...func() error)
Add adds `func() error` callback to the globalCloser
Closer ...
New returns new Closer, if []os.Signal is specified Closer will automatically call CloseAll when one of signals is received from OS
CloseAll calls all closer functions
Wait blocks until all closer functions are done
Source Files
¶
Click to show internal directories.
Click to hide internal directories.