{"id":15693208,"url":"https://github.com/code-hex/go-async","last_synced_at":"2025-10-05T03:47:03.339Z","repository":{"id":71653795,"uuid":"168641485","full_name":"Code-Hex/go-async","owner":"Code-Hex","description":"More Easy, more readable sync.WaitGroup","archived":false,"fork":false,"pushed_at":"2019-02-01T04:58:21.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T19:33:37.569Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Code-Hex.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":"2019-02-01T04:20:44.000Z","updated_at":"2019-02-07T05:55:10.000Z","dependencies_parsed_at":"2023-05-13T08:30:34.914Z","dependency_job_id":null,"html_url":"https://github.com/Code-Hex/go-async","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Code-Hex/go-async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fgo-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fgo-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fgo-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fgo-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/go-async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fgo-async/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278405262,"owners_count":25981492,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T18:42:15.625Z","updated_at":"2025-10-05T03:47:03.133Z","avatar_url":"https://github.com/Code-Hex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go Async-Group\n=====\n\nGo Async Group can be more easily manage goroutine.\n\n[![CircleCI](https://circleci.com/gh/Code-Hex/go-async.svg?style=svg)](https://circleci.com/gh/Code-Hex/go-async)\n[![codecov](https://codecov.io/gh/Code-Hex/go-async/branch/master/graph/badge.svg)](https://codecov.io/gh/Code-Hex/go-async)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Code-Hex/go-async)](https://goreportcard.com/report/github.com/Code-Hex/go-async)\n[![GoDoc](https://godoc.org/github.com/Code-Hex/go-async?status.svg)](https://godoc.org/github.com/Code-Hex/go-async)\n\n[errgroup](https://godoc.org/golang.org/x/sync/errgroup) has the goal is to cancel all asynchronous when at least one async fails.  \nThis package is used to wait until all the executed asynchronous processing is finished.\n\n# Synopsis\n\n```go\nfunc main() {\n\tvar ag async.Group\n\tvar sum, expected uint32\n\tfor i := 0; i \u003c times; i++ {\n\t\texpected++\n\t\tag.Go(func() {\n\t\t\tatomic.AddUint32(\u0026sum, 1)\n\t\t})\n\t}\n\tag.Wait()\n\tfmt.Println(sum, expected)\n}\n```\n\nIf you want to use at your application, see [example](https://github.com/Code-Hex/go-async/blob/master/example_test.go).\n\n# Installation\n\n    go get -u github.com/Code-Hex/go-async\n\n# Contribution\n\n1. Fork [https://github.com/Code-Hex/go-async/fork](https://github.com/Code-Hex/go-async/fork)\n2. Commit your changes\n3. Create a new Pull Request\n\nI'm waiting for a lot of PR.\n\n# Author\n\n[codehex](https://twitter.com/CodeHex)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fgo-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Fgo-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fgo-async/lists"}