package
Version:
v1.3.9
Opens a new window with list of versions in this module.
Published: Sep 23, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func Func(where string, f func())
Func 安全的执行f函数,如果panic会自动捕获
func Go(where string, f func())
Go 安全执行 f 函数
func LoopFunc(where string, f func())
LoopFunc 循环执行函数,直到其正常退出.通常用于f函数需要循环执行,被异常中止后继续重复执行
func LoopGo(where string, f func())
LoopGo 在新的goroutine中使用LoopFunc执行 f函数
func RecoverPanic(where string, after ...func())
Source Files
¶
Click to show internal directories.
Click to hide internal directories.