{"id":36470115,"url":"https://github.com/nesv/workqueue","last_synced_at":"2026-01-12T00:35:16.625Z","repository":{"id":57520145,"uuid":"69975090","full_name":"nesv/workqueue","owner":"nesv","description":"Package workqueue provides a simple means of queuing any type of work.","archived":false,"fork":false,"pushed_at":"2023-02-19T18:17:32.000Z","size":13,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-21T18:04:13.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nesv.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":"2016-10-04T14:48:25.000Z","updated_at":"2024-04-04T20:38:35.000Z","dependencies_parsed_at":"2024-06-19T04:12:14.880Z","dependency_job_id":null,"html_url":"https://github.com/nesv/workqueue","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nesv/workqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesv%2Fworkqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesv%2Fworkqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesv%2Fworkqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesv%2Fworkqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nesv","download_url":"https://codeload.github.com/nesv/workqueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesv%2Fworkqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28329805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:13:06.322Z","status":"ssl_error","status_checked_at":"2026-01-12T00:04:50.725Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-12T00:35:16.083Z","updated_at":"2026-01-12T00:35:16.617Z","avatar_url":"https://github.com/nesv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# workqueue\n\nPackage workqueue provides a means to queueing work.\n\n## Documentation\n\n[GoDoc](https://pkg.go.dev/go.nesv.ca/workqueue/v2)\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"sync\"\n\n\tworkqueue \"go.nesv.ca/workqueue/v2\"\n)\n\nfunc main() {\n\t// Create a new Queue.\n\tq := workqueue.New(1024)\n\n\t// Use a sync.WaitGroup to make sure we process all work before\n\t// exiting.\n\tvar wg sync.WaitGroup\n\n\t// Now, let's do some work.\n\tfor i := 0; i \u003c 2048; i++ {\n\t\twg.Add(1)\n\t\tgo func(v int) {\n\t\t\tq \u003c- func() {\n\t\t\t\tfmt.Println(v)\n\t\t\t\twg.Done()\n\t\t\t}\n\t\t}(i)\n\t}\n\n\t// Wait for all the work to be done, then close the Queue.\n\twg.Wait()\n\tclose(q)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnesv%2Fworkqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnesv%2Fworkqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnesv%2Fworkqueue/lists"}