{"id":37143889,"url":"https://github.com/ykhrustalev/goroutinepool","last_synced_at":"2026-01-14T16:53:49.608Z","repository":{"id":57552320,"uuid":"159998429","full_name":"ykhrustalev/goroutinepool","owner":"ykhrustalev","description":"A helper to run goroutines in a pool just like in java's or python's pools","archived":false,"fork":false,"pushed_at":"2020-08-19T20:34:56.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T17:29:14.996Z","etag":null,"topics":["golang","goroutine","goroutine-pool","pool"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ykhrustalev.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":"2018-12-02T00:01:53.000Z","updated_at":"2024-01-14T03:29:59.000Z","dependencies_parsed_at":"2022-09-26T18:50:39.667Z","dependency_job_id":null,"html_url":"https://github.com/ykhrustalev/goroutinepool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ykhrustalev/goroutinepool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ykhrustalev%2Fgoroutinepool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ykhrustalev%2Fgoroutinepool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ykhrustalev%2Fgoroutinepool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ykhrustalev%2Fgoroutinepool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ykhrustalev","download_url":"https://codeload.github.com/ykhrustalev/goroutinepool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ykhrustalev%2Fgoroutinepool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["golang","goroutine","goroutine-pool","pool"],"created_at":"2026-01-14T16:53:49.015Z","updated_at":"2026-01-14T16:53:49.600Z","avatar_url":"https://github.com/ykhrustalev.png","language":"Go","readme":"# Goroutinepool \n[![GoDoc](https://godoc.org/github.com/ykhrustalev/goroutinepool?status.svg)](https://godoc.org/github.com/ykhrustalev/goroutinepool)\n[![Build Status](https://travis-ci.org/ykhrustalev/goroutinepool.svg)](https://travis-ci.org/ykhrustalev/goroutinepool) \n[![Go Report Card](https://goreportcard.com/badge/github.com/ykhrustalev/goroutinepool)](https://goreportcard.com/report/github.com/ykhrustalev/goroutinepool)\n\nPackage goroutinepool provides handy functions for running goroutines\nconcurrently similar to `multiprocess.Pool` in python or\n`concurrency.ThreadPoolExecutor` in java.\n\nExample:\n\n```go\nctx := context.Background()\n\nvar counter int32\n\n// a simple job to increment a number\nincrement := func(delta int32) func(context.Context) {\n    return func(ctx context.Context) {\n        atomic.AddInt32(\u0026counter, delta)\n    }\n}\n\n// jobs\nfns := []func(context.Context){\n    increment(1),\n    increment(10),\n    increment(100),\n}\n\n// use two workers\ngoroutinepool.RunInPool(ctx, 2, fns)\n\nfmt.Println(atomic.LoadInt32(\u0026counter))\n\n// Output:\n// 111\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fykhrustalev%2Fgoroutinepool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fykhrustalev%2Fgoroutinepool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fykhrustalev%2Fgoroutinepool/lists"}