gsignal

package
v0.0.0-...-04ff805 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWaiter

func CloseWaiter(message string)

Exit send close signal with given message

func RegisterExitCallback

func RegisterExitCallback(f ExitHandler)

adds exit callback, callbacks will be executed before exit Notice: Can catch kill / killall / Hangup(close terminal) Can't catch os.Exit, main() return and exception panic crash

func WaitExitSignal

func WaitExitSignal()

Types

type ExitHandler

type ExitHandler func(sig os.Signal, closemsg string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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