{"id":37207916,"url":"https://github.com/highlight/workerpool","last_synced_at":"2026-01-14T23:54:03.398Z","repository":{"id":57633341,"uuid":"413974720","full_name":"highlight/workerpool","owner":"highlight","description":"Concurrency limiting goroutine pool","archived":false,"fork":true,"pushed_at":"2021-10-29T00:44:32.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-22T08:58:06.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cameronbrill/workerpool","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-05T20:48:35.000Z","updated_at":"2021-10-29T00:41:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/highlight/workerpool","commit_stats":null,"previous_names":["highlight-run/workerpool"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/highlight/workerpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlight%2Fworkerpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlight%2Fworkerpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlight%2Fworkerpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlight%2Fworkerpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlight","download_url":"https://codeload.github.com/highlight/workerpool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlight%2Fworkerpool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T23:54:02.639Z","updated_at":"2026-01-14T23:54:03.387Z","avatar_url":"https://github.com/highlight.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# workerpool\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/highlight-run/workerpool)](https://pkg.go.dev/github.com/highlight-run/workerpool)\n[![Build Status](https://github.com/highlight-run/workerpool/actions/workflows/go.yml/badge.svg)](https://github.com/highlight-run/workerpool/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/highlight-run/workerpool)](https://goreportcard.com/report/github.com/highlight-run/workerpool)\n[![codecov](https://codecov.io/gh/highlight-run/workerpool/branch/master/graph/badge.svg)](https://codecov.io/gh/highlight-run/workerpool)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/highlight-run/workerpool/blob/master/LICENSE)\n\nConcurrency limiting goroutine pool. Limits the concurrency of task execution, not the number of tasks queued. Never blocks submitting tasks, no matter how many tasks are queued.\n\nThis implementation builds on ideas from the following:\n\n- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang\n- http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html\n\n## Installation\n\nTo install this package, you need to setup your Go workspace. The simplest way to install the library is to run:\n\n```\n$ go get github.com/highlight-run/workerpool\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/highlight-run/workerpool\"\n)\n\nfunc main() {\n\twp := workerpool.New(2)\n\trequests := []string{\"alpha\", \"beta\", \"gamma\", \"delta\", \"epsilon\"}\n\n\tfor _, r := range requests {\n\t\tr := r\n\t\twp.Submit(func() {\n\t\t\tfmt.Println(\"Handling request:\", r)\n\t\t})\n\t}\n\n\twp.StopWait()\n}\n```\n\n## Usage Note\n\nThere is no upper limit on the number of tasks queued, other than the limits of system resources. If the number of inbound tasks is too many to even queue for pending processing, then the solution is outside the scope of workerpool. If should be solved by distributing load over multiple systems, and/or storing input for pending processing in intermediate storage such as a file system, distributed message queue, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlight%2Fworkerpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlight%2Fworkerpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlight%2Fworkerpool/lists"}