exit

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(name string, fn func())

在程序 kill之前通知你,注意不要使用 kill -9

func CallbackWithPriority

func CallbackWithPriority(name string, fn func(), priority int)

func Close

func Close(name string, o CloseAble)

func CloseWithPriority

func CloseWithPriority(name string, o CloseAble, priority int)

func Exit

func Exit()

func Wait

func Wait(name string, gp WaitAble)

Types

type CloseAble

type CloseAble interface {
	Close()
}

type WaitAble

type WaitAble interface {
	Wait()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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