closekit

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(id string, px Priority, fn func() error)

Add 将资源关闭操作添加到关闭队列中

按 [P0 - P100] 顺序关闭(相同优先级按添加顺序关闭)

func Close

func Close()

Close 关闭队列中的资源

Types

type Priority

type Priority int
const (
	P0 Priority = iota
	P1
	P2
	P3
	P4
	P5
	P6
	P7
	P8
	P9
	P10
	P11
	P12
	P13
	P14
	P15
	P16
	P17
	P18
	P19
	P20
	P21
	P22
	P23
	P24
	P25
	P26
	P27
	P28
	P29
	P30
	P31
	P32
	P33
	P34
	P35
	P36
	P37
	P38
	P39
	P40
	P41
	P42
	P43
	P44
	P45
	P46
	P47
	P48
	P49
	P50
	P51
	P52
	P53
	P54
	P55
	P56
	P57
	P58
	P59
	P60
	P61
	P62
	P63
	P64
	P65
	P66
	P67
	P68
	P69
	P70
	P71
	P72
	P73
	P74
	P75
	P76
	P77
	P78
	P79
	P80
	P81
	P82
	P83
	P84
	P85
	P86
	P87
	P88
	P89
	P90
	P91
	P92
	P93
	P94
	P95
	P96
	P97
	P98
	P99
	P100
)

Jump to

Keyboard shortcuts

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