{"id":31692286,"url":"https://github.com/raidancampbell/go-workpool","last_synced_at":"2025-10-08T14:05:24.409Z","repository":{"id":83669099,"uuid":"250846676","full_name":"raidancampbell/go-workpool","owner":"raidancampbell","description":"A workpool management system that retains order","archived":false,"fork":false,"pushed_at":"2020-03-29T05:21:18.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T00:32:27.332Z","etag":null,"topics":["go","golang","threadpool","workpool"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raidancampbell.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":"2020-03-28T16:50:44.000Z","updated_at":"2020-03-29T05:21:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"735e8c11-dd91-452c-9358-f0a04b8c93dd","html_url":"https://github.com/raidancampbell/go-workpool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raidancampbell/go-workpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidancampbell%2Fgo-workpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidancampbell%2Fgo-workpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidancampbell%2Fgo-workpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidancampbell%2Fgo-workpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raidancampbell","download_url":"https://codeload.github.com/raidancampbell/go-workpool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidancampbell%2Fgo-workpool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956330,"owners_count":26075221,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","threadpool","workpool"],"created_at":"2025-10-08T14:05:23.198Z","updated_at":"2025-10-08T14:05:24.403Z","avatar_url":"https://github.com/raidancampbell.png","language":"Go","readme":"# go-workpool\n[![Go Report Card](https://goreportcard.com/badge/github.com/raidancampbell/go-workpool)](https://goreportcard.com/report/github.com/raidancampbell/go-workpool)\n[![GoDoc](https://godoc.org/github.com/raidancampbell/go-workpool?status.svg)](https://godoc.org/github.com/raidancampbell/go-workpool)\n```go\nimport github.com/raidancampbell/go-workpool\n```\n`go-workpool` provides a pool-of-work pattern,  to synchronize events before passing them to an asynchronous/parallel processing pipeline.\n\nFor example, if you have 3 events:\n1. an account creation for account `a`\n2. an account update for account `a`\n3. an account update for account `b`\n\nEvents 1 and 3 can be processed simultaneously, while event 2 must wait until event 1 is complete.\n\n### Usage\n\nA workpool is instantiated via `workpool.New()`.  The workpool expects submitted work to implement the `Work` interface.  This interface has a `Key()` function to return a string (`\"a\"` or `\"b\"` in the above example), and has a `Do()` function to perform whatever work is required.  The `workpool_test.go` file contains some simple examples.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraidancampbell%2Fgo-workpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraidancampbell%2Fgo-workpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraidancampbell%2Fgo-workpool/lists"}