{"id":24083382,"url":"https://github.com/mitranim/cc","last_synced_at":"2025-07-18T17:07:06.792Z","repository":{"id":57635029,"uuid":"425584441","full_name":"mitranim/cc","owner":"mitranim","description":"[MOVED] Tiny Go tool for running multiple functions concurrently and collecting their results into an error slice.","archived":false,"fork":false,"pushed_at":"2023-03-26T17:19:01.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T13:33:18.061Z","etag":null,"topics":["concurrency","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitranim.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-07T18:31:23.000Z","updated_at":"2023-08-01T09:09:06.000Z","dependencies_parsed_at":"2024-06-20T00:17:56.206Z","dependency_job_id":"679ce813-80af-4d42-be4a-b69042f1c8ee","html_url":"https://github.com/mitranim/cc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mitranim/cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitranim","download_url":"https://codeload.github.com/mitranim/cc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fcc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265798519,"owners_count":23829956,"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":["concurrency","golang"],"created_at":"2025-01-09T23:56:31.021Z","updated_at":"2025-07-18T17:07:06.764Z","avatar_url":"https://github.com/mitranim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Moved to https://github.com/mitranim/gg**. This repo is usable but frozen.\n\n## Overview\n\nShort for \"**C**on**C**urrent\". Go tool for running multiple functions concurrently, collecting their errors into an error slice. Tiny and dependency-free.\n\nAPI docs: https://pkg.go.dev/github.com/mitranim/cc.\n\n## Examples\n\n```golang\nimport \"github.com/mitranim/cc\"\n\nfunc ExampleAll() {\n  err := cc.All(\n    func() {\n      fmt.Println(`running in background`)\n    },\n    func() {\n      fmt.Println(`running in background`)\n    },\n  )\n  fmt.Println(`done; no error:`, err == nil)\n\n  // Output:\n  // running in background\n  // running in background\n  // done; no error: true\n}\n\nfunc ExampleConc() {\n  var conc cc.Conc\n\n  conc.Add(func() {\n    fmt.Println(`running in background`)\n  })\n\n  conc.Add(func() {\n    fmt.Println(`running in background`)\n  })\n\n  fmt.Println(`starting`)\n\n  err := conc.All()\n  fmt.Println(`done; no error:`, err == nil)\n\n  // Output:\n  // starting\n  // running in background\n  // running in background\n  // done; no error: true\n}\n```\n\n## License\n\nhttps://unlicense.org\n\n## Misc\n\nI'm receptive to suggestions. If this library _almost_ satisfies you but needs changes, open an issue or chat me up. Contacts: https://mitranim.com/#contacts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Fcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitranim%2Fcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Fcc/lists"}