base: github.com/grailbio/base/shutdown Index | Files

package shutdown

import "github.com/grailbio/base/shutdown"

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

shutdown.go

func Register Uses

func Register(f Func)

func Run Uses

func Run()

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

type Func Uses

type Func func()

Func is the type of function run on shutdowns.

Package shutdown imports 1 packages (graph) and is imported by 3 packages. Updated 2019-10-10. Refresh now. Tools for package owners.