Back to godoc.org

Package shutdown

v0.0.9
Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module: github.com/grailbio/base

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

Package Files

func Register

func Register(f Func)

func Run

func Run()

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

type Func

type Func func()

Func is the type of function run on shutdowns.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier