Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MonitorExitSignalsSynchronously ¶ added in v3.0.67
MonitorExitSignalsSynchronously 同步地监听.
@param callbacks 可以不传
PS: (1) 会 阻塞 调用此函数的goroutine; (2) 理论上,应该 由main goroutine调用此函数 && 此函数只能被调用1次; (3) 按实际需求,可能要和 logrus.RegisterExitHandler() 搭配使用; (4) 执行顺序: 先执行 callbacks,再执行 logrus.RegisterExitHandler() 注册的handlers(有的话).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.