{"id":41478222,"url":"https://github.com/ninedraft/limiter","last_synced_at":"2026-01-23T17:12:02.960Z","repository":{"id":57528637,"uuid":"104926376","full_name":"ninedraft/limiter","owner":"ninedraft","description":"A simple concurrency limiter","archived":false,"fork":false,"pushed_at":"2018-01-21T12:01:08.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T16:37:30.007Z","etag":null,"topics":["async-programming","asynchronous-programming","go","golang","golang-package","limiter","limiting","synchronization"],"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/ninedraft.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}},"created_at":"2017-09-26T19:03:58.000Z","updated_at":"2024-06-20T16:37:30.008Z","dependencies_parsed_at":"2022-09-03T19:42:50.593Z","dependency_job_id":null,"html_url":"https://github.com/ninedraft/limiter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ninedraft/limiter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninedraft%2Flimiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninedraft%2Flimiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninedraft%2Flimiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninedraft%2Flimiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninedraft","download_url":"https://codeload.github.com/ninedraft/limiter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninedraft%2Flimiter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28696521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: 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":["async-programming","asynchronous-programming","go","golang","golang-package","limiter","limiting","synchronization"],"created_at":"2026-01-23T17:12:02.408Z","updated_at":"2026-01-23T17:12:02.955Z","avatar_url":"https://github.com/ninedraft.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# limiter\n\nA dead simple goroutine limiter.\nExample:\n\n```go\nnames := []string{\"John\", \"Ada\", \"Merlin\", \"Tanya\"}\n// parameter is a limit\n// .Start() method blocks until number \n// of running goroutines is reduced.\nlimit := limiter.New(2)\nfor _, name := range names {\n    go func(name string, done func()) {\n        defer done()\n        fmt.Printf(\"Hello, %s!\\n\", name)\n    // .Start()) blocks f the number of workers \n    // approaches the specified limit, \n    // then waits until the number of active workers decreases.\n    }(name, limit.Start())\n}\n// .Wait() blocks until all tasks are completed.\nlimit.Wait()\n```\nTo use limiter import it in your project or just copy-paste source code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninedraft%2Flimiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninedraft%2Flimiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninedraft%2Flimiter/lists"}