Documentation
¶
Overview ¶
Package goroutine provides a panic-safe goroutine launcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Go ¶
func Go(fn func(), labels ...string)
Go launches fn in a new goroutine. If fn panics the panic is recovered, logged at ERROR level via slog.Default() (never re-panicked), and the goroutine exits cleanly.
labels are optional key=value strings attached to the log record for filtering (e.g. Go(fn, "subsystem", "ingestion")).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.