{"id":15473752,"url":"https://github.com/adwpc/xsync","last_synced_at":"2025-07-10T20:10:20.900Z","repository":{"id":207727573,"uuid":"719932877","full_name":"adwpc/xsync","owner":"adwpc","description":"golang simple and powerful sync package, no-panic ttl waitgroup","archived":false,"fork":false,"pushed_at":"2024-04-18T03:28:54.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T13:21:16.922Z","etag":null,"topics":["golang","no-panic","sync","ttl","waitgroup"],"latest_commit_sha":null,"homepage":"","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/adwpc.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":"2023-11-17T08:03:20.000Z","updated_at":"2023-12-06T02:56:37.000Z","dependencies_parsed_at":"2024-10-02T03:00:39.373Z","dependency_job_id":"9a430b1b-5800-458e-a7f7-df1e496757de","html_url":"https://github.com/adwpc/xsync","commit_stats":null,"previous_names":["adwpc/xsync"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/adwpc/xsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adwpc%2Fxsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adwpc%2Fxsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adwpc%2Fxsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adwpc%2Fxsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adwpc","download_url":"https://codeload.github.com/adwpc/xsync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adwpc%2Fxsync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264648074,"owners_count":23643657,"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":["golang","no-panic","sync","ttl","waitgroup"],"created_at":"2024-10-02T03:00:29.499Z","updated_at":"2025-07-10T20:10:20.884Z","avatar_url":"https://github.com/adwpc.png","language":"Go","readme":"# xsync\nsimple and powerful sync package\n\nexample\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/adwpc/xsync\"\n)\n\nfunc main() {\n    swg := xsync.NewXWaitGroup()\n\tswg.Add(1)\n\tgo func() {\n\t\ttime.Sleep(5 * time.Second) // simulate a long task\n\t\tswg.Done()\n\t}()\n\t// swg.Done() // extra Done call, will not cause panic\n\tif swg.Wait(3 * time.Second) {\n\t\tfmt.Println(\"Timed out\")\n\t} else {\n\t\tfmt.Println(\"XWaitGroup finished\")\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadwpc%2Fxsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadwpc%2Fxsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadwpc%2Fxsync/lists"}