package
Version:
v0.0.0-...-1bf90d9
Opens a new window with list of versions in this module.
Published: Jul 30, 2024
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 func to global closer.
CloseAll calls all closer functions.
Wait blocks until all closer functions are done.
Closer is a global 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.