goroutine

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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