safe

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch

func Catch(fn func(), onErr func(err any))

Catch 捕获错误

func Go

func Go(retry int, fn func())

Go 安全运行协程

func Recover added in v1.0.51

func Recover(onErr func(err any))

Recover 错误处理

func Retry

func Retry(retry int, fn func())

Retry 重试

func Trace added in v1.0.8

func Trace(deep int) []string

Trace 执行链路

Types

This section is empty.

Jump to

Keyboard shortcuts

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