# sourcegraph/conc

Better structured concurrency for go

Repository: https://github.com/sourcegraph/conc
Canonical: https://ross.abutalabs.com/products/conc
Homepage: https://about.sourcegraph.com/blog/building-conc-better-structured-concurrency-for-go
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, concurrency, goroutines
Last push: 2026-07-03T18:37:48+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 8, longevity 95
- inputs: {"age_days": 1339, "days_push": 61, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10427, forks 357 (observed 2026-08-28T04:10:41.976204+00:00)

## What it is
conc is a Go library providing better structured concurrency primitives, including a panic-safe WaitGroup and concurrency-limited task pools. It reduces boilerplate and makes concurrent Go code safer by propagating panics and preventing goroutine leaks.

## Use cases
- run goroutines with panic propagation instead of crashing the process
- limit concurrency of parallel tasks with a worker pool
- collect results from concurrent tasks in Go
- replace sync.WaitGroup with a safer version
- handle errors from concurrent goroutines cleanly
- avoid goroutine leaks and deadlocks from panics

## When to choose
- you write concurrent Go code and want panic-safe goroutine management
- you need bounded-concurrency task execution or result collection
- you want less boilerplate than the standard library for common concurrency patterns

## When to avoid
- your project is not written in Go
- you need async/await-style structured concurrency in another language
- your concurrency needs are trivial and sync.WaitGroup suffices

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools
- platform: go
- tags: goroutines, structured-concurrency, waitgroup, worker-pool, panic-handling, algorithms

## Member repositories
- sourcegraph/conc (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.976204+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:02.210686+00:00, confidence not recorded.
  - readme: https://github.com/sourcegraph/conc (fetched 2026-08-28T04:10:41.976204+00:00, sha 712cf6bc8d8a)
  - homepage: https://about.sourcegraph.com/blog/building-conc-better-structured-concurrency-for-go (fetched 2026-08-29T08:18:14.031313+00:00, sha 0085724361b6)
  - site_page: https://sourcegraph.com/docs (fetched 2026-08-29T08:18:14.043681+00:00, sha 926125f12098)
  - site_page: https://sourcegraph.com/changelog (fetched 2026-08-29T08:18:14.041273+00:00, sha 447aea873969)
  - site_page: https://sourcegraph.com/ (fetched 2026-08-29T08:18:14.045523+00:00, sha 6246d788642a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
