{"id":17132998,"url":"https://github.com/agraphie/naiveworkerpool","last_synced_at":"2025-03-24T05:42:12.089Z","repository":{"id":149590901,"uuid":"155995754","full_name":"Agraphie/NaiveWorkerPool","owner":"Agraphie","description":"A simple worker pool for submitting work to","archived":false,"fork":false,"pushed_at":"2018-11-28T19:37:29.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T11:28:32.670Z","etag":null,"topics":["go","golang","workerpool"],"latest_commit_sha":null,"homepage":"","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/Agraphie.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-03T15:22:05.000Z","updated_at":"2018-11-28T19:37:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"4217b6e7-20a9-4aa1-9a02-18c86d935bab","html_url":"https://github.com/Agraphie/NaiveWorkerPool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agraphie%2FNaiveWorkerPool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agraphie%2FNaiveWorkerPool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agraphie%2FNaiveWorkerPool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agraphie%2FNaiveWorkerPool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agraphie","download_url":"https://codeload.github.com/Agraphie/NaiveWorkerPool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217792,"owners_count":20579297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","golang","workerpool"],"created_at":"2024-10-14T19:29:05.708Z","updated_at":"2025-03-24T05:42:12.066Z","avatar_url":"https://github.com/Agraphie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"NaiveWorkerPool\n==========\n[![Go Report Card](https://goreportcard.com/badge/github.com/agraphie/naiveworkerpool)](https://goreportcard.com/report/github.com/agraphie/naiveworkerpool)\n\nGo package for using a simple and dynamically growing worker pool to submit functions to. \n\n```go\ninitialWorkerCount := uint64(4)\nmaxWorker := uint(64)\npool := Create(initialWorkerCount, maxWorker)\n\npool.Submit(func() {\n  // Any work you want to be done. Pool will grow dynamically when too much work is queued up.\n})\n\n// Shut down the pool, but wait for all work to be done\npool.Dispose()\n```\n\nA pool can grow until it reaches the specified max worker limit. The pool will stay on that level until all work is done. It will\nthen decrease again until it reaches the initial size. The growing will (naively) starting now when more than 10 functions are queued up.\n\nSee [GoDoc](https://godoc.org/github.com/Agraphie/NaiveWorkerPool) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagraphie%2Fnaiveworkerpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagraphie%2Fnaiveworkerpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagraphie%2Fnaiveworkerpool/lists"}