util

package
v0.0.0-...-7add6ca Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeGo

func SafeGo(fn func())

SafeGo wraps a goroutine with panic recovery. Use this instead of bare `go func()` everywhere.

func SafeGoWithContext

func SafeGoWithContext(cancel context.CancelFunc, fn func())

SafeGoWithContext wraps a goroutine with panic recovery and context cancellation. On panic, cancel() is called to propagate failure to parent context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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