{"id":21121447,"url":"https://github.com/oneofone/limiter","last_synced_at":"2025-10-28T15:07:29.218Z","repository":{"id":64298852,"uuid":"227677049","full_name":"OneOfOne/limiter","owner":"OneOfOne","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-12T20:07:17.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T05:25:02.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneOfOne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-12T19:03:41.000Z","updated_at":"2022-12-20T06:54:46.000Z","dependencies_parsed_at":"2023-01-15T09:01:46.802Z","dependency_job_id":null,"html_url":"https://github.com/OneOfOne/limiter","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/OneOfOne%2Flimiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Flimiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Flimiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Flimiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneOfOne","download_url":"https://codeload.github.com/OneOfOne/limiter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243566406,"owners_count":20311875,"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":[],"created_at":"2024-11-20T03:50:19.345Z","updated_at":"2025-10-28T15:07:24.164Z","avatar_url":"https://github.com/OneOfOne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# limiter [![GoDoc](http://godoc.org/github.com/OneOfOne/limiter?status.svg)](http://godoc.org/github.com/OneOfOne/limiter) [![Build Status](https://travis-ci.org/OneOfOne/limiter.svg?branch=master)](https://travis-ci.org/OneOfOne/limiter)\n\nlimiter provides a simple limited job queue with context support\n\n## ack Example\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\n\t\"github.com/OneOfOne/limiter\"\n)\n\nfunc main() {\n\tl := limiter.NewWithContext(context.Background(), runtime.NumCPU())\n\n\tfor i := range [1000]struct{}{} {\n\t\tl.Do(func(ctx context.Context) error {\n\t\t\t// do something\n\t\t})\n\t}\n\tl.Wait()\n}\n```\n\n## License\n\nThis project is released under the [BSD 3-clause \"New\" or \"Revised\" License](https://github.com/golang/go/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Flimiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneofone%2Flimiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Flimiter/lists"}