{"id":15954827,"url":"https://github.com/tembleking/cchan","last_synced_at":"2025-08-18T18:07:10.468Z","repository":{"id":117580042,"uuid":"184465729","full_name":"tembleking/cchan","owner":"tembleking","description":"A C++17 header-based library that implements Go-like channels.","archived":false,"fork":false,"pushed_at":"2020-05-16T10:22:51.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T23:34:29.858Z","etag":null,"topics":["channels","concurrency","concurrency-patterns","concurrent-programming","cpp","cpp-library","cpp17","golang","library","mit","mit-license"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/tembleking.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-05-01T18:55:28.000Z","updated_at":"2024-09-09T09:34:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"00eeda2a-c40a-4d04-a3e7-3e945be77a5a","html_url":"https://github.com/tembleking/cchan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tembleking/cchan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tembleking%2Fcchan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tembleking%2Fcchan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tembleking%2Fcchan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tembleking%2Fcchan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tembleking","download_url":"https://codeload.github.com/tembleking/cchan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tembleking%2Fcchan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271035527,"owners_count":24688432,"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-08-18T02:00:08.743Z","response_time":89,"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":["channels","concurrency","concurrency-patterns","concurrent-programming","cpp","cpp-library","cpp17","golang","library","mit","mit-license"],"created_at":"2024-10-07T13:20:03.346Z","updated_at":"2025-08-18T18:07:10.436Z","avatar_url":"https://github.com/tembleking.png","language":"C++","readme":"# cchan\n\nA C++17 header-based library that implements [Go](https://golang.org/)-like channels.\n\nGo relies on a concurrency model called [CSP (Communicating Sequential Processes)](https://en.wikipedia.org/wiki/Communicating_sequential_processes), to achieve this pattern of synchronization through Channels. Go core philosophy for concurrency is\n\n    Do not communicate by sharing memory; instead, share memory by communicating.\n\nThis library provides a set of types which methods behave like Go channels.\n\n## Installation\n\nImport the header `chan.h` into your project to use it.\n\n## Usage\n\nThere are multiple examples in the `examples` folder.\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cthread\u003e\n#include \"chan.h\"\n\n// https://gobyexample.com/channels\nint main() {\n\n    chan\u003cstd::string\u003e messages;\n\n    std::thread([\u0026]() {\n        messages.put(\"ping\");\n    }).detach();\n\n    auto msg = messages.get().value();\n    std::cout \u003c\u003c msg \u003c\u003c std::endl;\n}\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftembleking%2Fcchan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftembleking%2Fcchan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftembleking%2Fcchan/lists"}