shutdown

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package shutdown implements a global process shutdown mechanism. It is used by package github.com/grailbio/base/grail to perform graceful shutdown of software components. It is a separate package in order to avoid circular dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(f Func)

func Run

func Run()

Run run callbacks added by Register. This function is not for general use.

Types

type Func

type Func func()

Func is the type of function run on shutdowns.

Jump to

Keyboard shortcuts

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