exit

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitHandler

type ExitHandler struct {
	ClosingFunctions []func() error
}
var GlobalExitHandler *ExitHandler

func NewExitHandler

func NewExitHandler() *ExitHandler

func (*ExitHandler) AddCancel

func (e *ExitHandler) AddCancel(cancel context.CancelFunc)

func (*ExitHandler) AddExit

func (e *ExitHandler) AddExit(f func() error)

func (*ExitHandler) Close

func (e *ExitHandler) Close()

Jump to

Keyboard shortcuts

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