safe

package
v0.0.0-...-d151d1d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(f func())

Go is a utility function that executes a function concurrently in a goroutine. It recovers from any panics that occur within the goroutine and prints the panic error.

func LoggerGo

func LoggerGo(logger *rainbowlog.Logger, f func())

LoggerGo is a utility function that executes a function concurrently in a goroutine. It recovers from any panics that occur within the goroutine and logs the panic error using the provided logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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