{"id":46744605,"url":"https://github.com/pointertobios/asco","last_synced_at":"2026-03-09T19:13:38.886Z","repository":{"id":287875331,"uuid":"962665358","full_name":"pointertobios/asco","owner":"pointertobios","description":"Coroutine based async framework.","archived":false,"fork":false,"pushed_at":"2026-03-06T09:54:18.000Z","size":586,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T09:57:08.782Z","etag":null,"topics":["async","async-framework","async-programming","coroutine","coroutines","cpp20","cpp23"],"latest_commit_sha":null,"homepage":"","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/pointertobios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-08T13:48:27.000Z","updated_at":"2026-03-06T09:54:22.000Z","dependencies_parsed_at":"2025-05-01T10:19:32.106Z","dependency_job_id":"916011af-e82a-4a11-8918-d7705afae71e","html_url":"https://github.com/pointertobios/asco","commit_stats":null,"previous_names":["pointertobios/asco"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pointertobios/asco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointertobios%2Fasco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointertobios%2Fasco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointertobios%2Fasco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointertobios%2Fasco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pointertobios","download_url":"https://codeload.github.com/pointertobios/asco/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointertobios%2Fasco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30308910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["async","async-framework","async-programming","coroutine","coroutines","cpp20","cpp23"],"created_at":"2026-03-09T19:13:38.271Z","updated_at":"2026-03-09T19:13:38.876Z","avatar_url":"https://github.com/pointertobios.png","language":"C++","readme":"# ASCO\n\n[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)\n\n基于 C++20 coroutine 的异步框架 (需要 ***C++23*** 支持).\n\n## 开始使用\n\n### 快速开始\n\n依赖目标 `asco::main`:\n\n```cpp\n#include \u003cprint\u003e\n#include \u003casco/future.h\u003e\n\nusing namespace asco;\n\nfuture\u003cvoid\u003e foo() {\n    std::println(\"foo() called\");\n    co_return;\n}\n\nfuture\u003cint\u003e async_main() { // asco::main 提供的入口\n    auto f = foo();\n    std::println(\"async_main() running\");\n    co_await f;\n    std::println(\"foo() completed\");\n    co_return 0;\n}\n```\n\n### 文档\n\n- [简体中文](https://pointertobios.github.io/asco/zhcn/)\n- [English (Generated by LLM)](https://pointertobios.github.io/asco/enus/)\n\n### 导入到你的项目\n\n#### 作为 Git 子模块\n\n1. 将本仓库添加为 Git 子模块\n2. 用 cmake 导入:\n\n- 静态链接:\n\n```cmake\nadd_subdirectory(\u003cpath-to-this-repo\u003e)\ntarget_link_libraries(\u003cyour-target\u003e PRIVATE asco::core asco::main)\n```\n\n- 动态链接:\n\n```cmake\nadd_subdirectory(\u003cpath-to-this-repo\u003e)\ntarget_link_libraries(\u003cyour-target\u003e PRIVATE asco::shared::core asco::shared::main)\n```\n\n#### 用 cmake FetchContent_Declare() 导入\n\n```cmake\ninclude(FetchContent)\n\nFetchContent_Declare(\n    asco\n    GIT_REPOSITORY https://github.com/pointertobios/asco.git\n    GIT_TAG \u003cversion-tag\u003e\n)\nFetchContent_MakeAvailable(asco)\n\n```\n\n## 功能特性\n\n\u003e 非叶子项打 ✔ 表示特性已可用但可能不完整\n\n- [x] 异步运行时\n  - [x] Linux 完整支持\n  - [ ] Windows 完整支持\n  - [ ] MacOS 完整支持\n  - [x] 核心运行时\n    - [x] 线程池 runtime\n    - [x] 任务取消机制\n    - [x] 动态优先级\n    - [x] 异步任务本地存储\n    - [ ] 任务偷窃\n    - [ ] 计时器\n      - [ ] 高分辨率计时器\n      - [ ] 时间轮\n    - [ ] IO 兼容层\n      - [ ] io_uring (Linux)\n      - [ ] Epoll (Linux)\n      - [ ] IOCP (Windows)\n- [x] 测试框架\n- [ ] 并发\n  - [x] 同步原语\n    - [x] 自旋锁\n    - [x] 信号量\n      - [x] 任务取消支持\n    - [x] 通道\n      - [ ] 任务取消支持\n    - [x] 互斥锁\n      - [ ] 任务取消支持\n    - [ ] 读写锁\n      - [ ] 任务取消支持\n    - [ ] 条件变量\n      - [ ] 任务取消支持\n    - [ ] 屏障\n      - [ ] 任务取消支持\n    - [ ] 门闩\n      - [ ] 任务取消支持\n  - [ ] 定时器与超时\n    - [ ] 任务取消支持\n  - [x] 无锁数据结构与算法\n    - [x] 环形队列\n    - [ ] 双端队列\n- [ ] 异步 IO\n  - [ ] 文件\n  - [ ] 网络\n  - [ ] 远程过程调用（RPC）\n\n## 编译器支持\n\n- Clang: 完整支持\n- GCC: 不完全支持\n- MSVC: 仅支持 VS 2026 及以上版本的 clang 模式\n\n## 开发与贡献\n\n阅读 [CONTRIBUTING.md](./CONTRIBUTING.md) 了解详情。\n\n## License\n\n本项目使用 **MIT License** 发布.\n\nCopyright (C) 2025 pointer-to-bios \u003cpointer-to-bios@outlook.com\u003e\n\n完整的法律条款参见 [LICENSE](./LICENSE.md)。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointertobios%2Fasco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpointertobios%2Fasco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointertobios%2Fasco/lists"}