{"id":16884837,"url":"https://github.com/f2prateek/semaphore","last_synced_at":"2025-03-20T05:41:21.017Z","repository":{"id":57487747,"uuid":"42963947","full_name":"f2prateek/semaphore","owner":"f2prateek","description":null,"archived":false,"fork":false,"pushed_at":"2016-05-01T16:41:46.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T07:12:05.314Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f2prateek.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":"2015-09-22T22:12:33.000Z","updated_at":"2016-04-07T06:12:10.000Z","dependencies_parsed_at":"2022-08-29T11:21:36.734Z","dependency_job_id":null,"html_url":"https://github.com/f2prateek/semaphore","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/f2prateek%2Fsemaphore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fsemaphore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fsemaphore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fsemaphore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f2prateek","download_url":"https://codeload.github.com/f2prateek/semaphore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560386,"owners_count":20472218,"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-10-13T16:31:31.529Z","updated_at":"2025-03-20T05:41:20.998Z","avatar_url":"https://github.com/f2prateek.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semaphore\n\nProvides a semaphore synchronization primitive. A semaphore controls access to a finite number of resources.\n\n# Usage\n\n```go\ns := semaphore.New(5)\n\nfor {\n  s.Acquire()\n  // Only 5 go-routines will run simultaneously.\n  go func() {\n    defer s.Release()\n  }()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff2prateek%2Fsemaphore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff2prateek%2Fsemaphore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff2prateek%2Fsemaphore/lists"}