closer

package
v0.0.0-...-b1e792f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(f ...func() error)

func CloseAll

func CloseAll()

func Wait

func Wait()

Types

type Closer

type Closer struct {
	// contains filtered or unexported fields
}

func New

func New(sig ...os.Signal) *Closer

func (*Closer) Add

func (c *Closer) Add(funcs ...func() error)

func (*Closer) CloseAll

func (c *Closer) CloseAll()

func (*Closer) Wait

func (c *Closer) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL