docs: document C++20 coroutine/async framework#371
Merged
kcenon merged 2 commits intoFeb 9, 2026
Conversation
Add comprehensive ASYNC_GUIDE.md covering: - C++20 coroutine primer (co_await, co_yield, co_return) - task<T> eager-start coroutine with exception handling - generator<T> lazy sequence with STL iterator support - async_container wrapper for non-blocking operations - Thread pool executor and IExecutor integration - 4 complete code examples (pipeline, parallel, lazy, streaming) - Compiler requirements (GCC/Clang/MSVC flags) Closes #367
8 tasks
- Clarify compiler version enforcement is via feature detection macros, not explicit CMake version checks - Add explanatory note about CONTAINER_HAS_COROUTINES behavior - Fix date (2025 -> 2026) - Clarify overview: "lazy" applies to generator, not task
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
* docs: document C++20 coroutine/async framework Add comprehensive ASYNC_GUIDE.md covering: - C++20 coroutine primer (co_await, co_yield, co_return) - task<T> eager-start coroutine with exception handling - generator<T> lazy sequence with STL iterator support - async_container wrapper for non-blocking operations - Thread pool executor and IExecutor integration - 4 complete code examples (pipeline, parallel, lazy, streaming) - Compiler requirements (GCC/Clang/MSVC flags) Closes #367 * docs: fix review findings in ASYNC_GUIDE.md - Clarify compiler version enforcement is via feature detection macros, not explicit CMake version checks - Add explanatory note about CONTAINER_HAS_COROUTINES behavior - Fix date (2025 -> 2026) - Clarify overview: "lazy" applies to generator, not task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/ASYNC_GUIDE.mddocumenting the C++20 coroutine-based async frameworktask.h,generator.h,async_container.h,thread_pool_executor.h,async.hCloses #367
Changes
New File:
docs/ASYNC_GUIDE.mdco_await,co_yield,co_returnbasics, promise type conceptsfrom_range(),take()utilitiesIExecutorintegration,async_executor_contextsingleton, RAII guardCONTAINER_ENABLE_COROUTINESSource Files Cross-Referenced
internal/async/task.h—promise_base,final_awaiter,make_ready_task()internal/async/generator.h—generator_promise, sentinel-based iterationinternal/async/async_container.h—async_awaitable,async_state, dual API (CONTAINER_HAS_COMMON_RESULT)internal/async/thread_pool_executor.h—executor_awaitable,executor_context_guardinternal/async/async.h— Feature detection,has_coroutine_supportTest Plan
Verification Details
Cross-Reference Review: 141 checks performed (135 PASS, 6 FAIL → all 6 resolved in follow-up commit)
CI: 25/25 checks ALL PASS