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.

        Source Files