{"id":20532477,"url":"https://github.com/joshdk/ratelimit","last_synced_at":"2026-05-06T13:10:08.341Z","repository":{"id":57612304,"uuid":"106417845","full_name":"joshdk/ratelimit","owner":"joshdk","description":"⏳ Super simple rate-limited task pool","archived":false,"fork":false,"pushed_at":"2017-10-13T18:20:24.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T02:49:08.141Z","etag":null,"topics":["golang","pool","rate-limiter"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/joshdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-10T13:01:56.000Z","updated_at":"2017-11-09T21:22:28.000Z","dependencies_parsed_at":"2022-08-27T09:50:45.389Z","dependency_job_id":null,"html_url":"https://github.com/joshdk/ratelimit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joshdk/ratelimit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fratelimit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fratelimit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fratelimit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fratelimit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshdk","download_url":"https://codeload.github.com/joshdk/ratelimit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fratelimit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32695054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"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":["golang","pool","rate-limiter"],"created_at":"2024-11-16T00:15:07.235Z","updated_at":"2026-05-06T13:10:08.325Z","avatar_url":"https://github.com/joshdk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/joshdk/ratelimit.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/github.com/joshdk/ratelimit?status.svg)](https://godoc.org/github.com/joshdk/ratelimit)\n[![Go Report Card](https://goreportcard.com/badge/github.com/joshdk/ratelimit)](https://goreportcard.com/report/github.com/joshdk/ratelimit)\n[![CircleCI](https://circleci.com/gh/joshdk/ratelimit.svg?\u0026style=shield)](https://circleci.com/gh/joshdk/ratelimit/tree/master)\n[![CodeCov](https://codecov.io/gh/joshdk/ratelimit/branch/master/graph/badge.svg)](https://codecov.io/gh/joshdk/ratelimit)\n\n# Ratelimit\n\n⏳ Super simple rate-limited task pool\n\n## Usage\n\n```go\n// Create a pool that can run 10 tasks per second\npool := ratelimit.NewPool(10, time.Second)\n\n// Add 100 tasks to the pool\nfor i := 0; i \u003c 100; i++ {\n\ti := i\n\tpool.Add(func() {\n\t\tfmt.Printf(\"this is job #%d\\n\", i)\n\t})\n}\n\n// Sleep for 10 seconds as tasks execute\ntime.Sleep(10 * time.Second)\n\n// Stop task execution and wait\npool.Stop()\npool.Wait()\n```\n\n## License\n\nThis library is distributed under the [MIT License](https://opensource.org/licenses/MIT), see LICENSE.txt for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fratelimit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshdk%2Fratelimit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fratelimit/lists"}