safe

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: May 22, 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 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