signalexit

package
v0.0.0-...-1fffc49 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExitFuncList = make([]*ExitFunc, 0, 10)
View Source
var ExitMutex sync.Mutex

Functions

func AddExitByFunc

func AddExitByFunc(f ExitFunc)

func AddExitFunc

func AddExitFunc(f *ExitFunc)

func DeleteExitFunc

func DeleteExitFunc(f *ExitFunc)

func InitSignalExit

func InitSignalExit(exitCode int64) errors.WTError

Types

type DeferFunc

type DeferFunc func()

func AddExitFuncAsDefer

func AddExitFuncAsDefer(f DeferFunc) DeferFunc

func AddExitFuncAsDeferNotDo

func AddExitFuncAsDeferNotDo(f DeferFunc) DeferFunc

type ExitFunc

type ExitFunc func(context.Context, os.Signal) context.Context

Jump to

Keyboard shortcuts

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