closer

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package closer stores process-wide shutdown callbacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(c interface{ Close() error })

Bind registers the Close method of c as a shutdown callback.

func CloseAll

func CloseAll()

CloseAll runs all registered shutdown callbacks in reverse registration order.

func Register

func Register(f func() error)

Register adds f to the process shutdown callback list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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