Discover Packages
code.vegaprotocol.io/vega
libs
close
package
Version:
v0.73.0-preview.16
Opens a new window with list of versions in this module.
Published: Oct 13, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Closer NewCloser() (c) Add(closeFn) (c) CloseAll()
Documentation
¶
func (c *Closer ) Add(closeFn func())
Add adds a function to call during call to CloseAll.
CloseAll calls all close functions in reverse order.
Higher level-components should be closed first, but are usually instantiated
last (and, thus, added later to the closer), hence the reverse order.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.