closer

package
v0.0.0-...-7dcf9b1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 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(f ...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