oklog/run
A universal mechanism to manage goroutine lifecycles observed · 2026-08-28
Health v2 · maintenance only
35/100
- Activity 28
- 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-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3215
- days_rel: 432
- days_push: 432
- n_releases_24m: 1
Adoption not part of the score
1720 stars · 92 forks observed · 2026-08-28
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-08-28 · dc3fa461af23
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| oklog/run | main | 35 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem