Repository navigation
docs: call ASIO and COROSIO I/O runtimes, and show the shape of an ooperation - #37
Merged
Merged
Conversation
…eration "API style" is gone, in the docs, CLAUDE.md, the README and the comments: ASIO and COROSIO are the two I/O runtimes. Not async runtimes: Corosio is the I/O on top of Capy, which is the async runtime, and Asio is both in one. The page api-styles.rst becomes io-runtimes.rst, "I/O runtimes: Asio and Corosio", with a new section on the shape of an operation: on ASIO an async_x(..., token) and the coroutine x() around it, on COROSIO the coroutine only. Its example, read_twice() in snippets.cpp, spells out the types that Task<> and error_code stand for on each runtime. The CMake option keeps its name, ANYHTTP_API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
"API style" is gone, in the docs, CLAUDE.md, the README and the comments: ASIO and COROSIO are the two I/O runtimes. Not async runtimes: Corosio is the I/O on top of Capy, which is the async runtime, and Asio is both in one. The page api-styles.rst becomes io-runtimes.rst, "I/O runtimes: Asio and Corosio", with a new section on the shape of an operation: on ASIO an async_x(..., token) and the coroutine x() around it, on COROSIO the coroutine only. Its example, read_twice() in snippets.cpp, spells out the types that Task<> and error_code stand for on each runtime.
The CMake option keeps its name, ANYHTTP_API.