oklog/run
Some data may be outdated — see provenance labels.
A universal mechanism to manage goroutine lifecycles observed · 2026-09-23
Health v2 · maintenance only
32/100
- Activity 20
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3263
- days_rel: 480
- days_push: 480
- n_releases_24m: 1
Adoption not part of the score
1721 stars · 94 forks observed · 2026-09-23
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
run.Group is a small Go library providing a universal mechanism to manage goroutine lifecycles. Actors are added as execute/interrupt function pairs, and Run orchestrates concurrent execution with well-defined shutdown semantics.
Use cases
- manage goroutine lifecycles in Go
- gracefully shut down an HTTP server on exit
- orchestrate multiple background workers as a unit
- run components in func main with clean teardown
- cancel goroutines via context when one exits
When to choose
- you need coordinated startup and shutdown of multiple goroutines
- you want a smaller API than errgroup or tomb without context requirements
- you're wiring long-running services in a main function
When to avoid
- you only need simple fire-and-forget goroutines
- you need staged shutdown semantics built in
- you're not writing Go
Facets
library · maturity stable
concurrency error-handling developer-tools backend go cross-platform goroutines lifecycle-management graceful-shutdown
1 source
- readme: https://github.com/oklog/run · fetched 2026-09-23 · dc3fa461af23
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| oklog/run | main | 32 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem