# Jeffail/tunny

A goroutine pool for Go

Repository: https://github.com/Jeffail/tunny
Canonical: https://ross.abutalabs.com/products/tunny
Language: Go
License: MIT
License Family: permissive
Topics: workers, goroutine-pool, golang, go
Last push: 2023-03-09T21:15:22+00:00

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

## Adoption (not part of the score)
Stars 4027, forks 308 (observed 2026-08-28T04:08:32.668493+00:00)

## What it is
Tunny is a Go library for spawning and managing a fixed pool of goroutines with a synchronous API. It lets you limit parallel work from arbitrary asynchronous sources, with support for timeouts, contexts, dynamic resizing, and stateful workers.

## Use cases
- limit concurrent CPU-heavy work in Go to the number of CPU cores
- process jobs from many HTTP requests with a bounded worker pool
- run background tasks with per-job timeouts in Go
- manage stateful goroutine workers
- resize a worker pool at runtime

## When to choose
- you need to cap parallelism of goroutines in a Go service
- you want a simple synchronous API for submitting jobs to workers
- you need job timeouts, context deadlines, or stateful workers

## When to avoid
- your workload is I/O-bound and lightweight goroutines suffice
- you need distributed job queues across machines rather than in-process pooling
- you want an actively developed library with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency
- domain: developer-tools, backend
- platform: go, windows
- tags: goroutine-pool, worker-pool, job-processing, linux, macos

## Member repositories
- Jeffail/tunny (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:32.668493+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-29T18:23:52.932615+00:00, confidence not recorded.
  - readme: https://github.com/Jeffail/tunny (fetched 2026-08-28T04:08:32.668493+00:00, sha 86bd7295317b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
