-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some documentation bugs/quesitons #100
Comments
(5). In section "Tutorial" > "Delay" we have a comment:
This is imprecise, and therefore confusing. Maybe you want to say:
Next, we have:
If this is an immediate competion, and I think it is, please indicate this. |
(6) The echo server tutorial has the following sentence in the description of the listener:
This seems to imply that a non-tutorial server implementation would not use |
(7). In the same echo server example:
There is no
|
In the same echo server example we have:
Do you mean, "This class will cancel & await the running echo coroutines when Next sentence:
I think that, unlike for the acceptor, the goal of the wait_group is to extend the lifetime of Also "I gets" -> "it gets". |
(9). use_op exmple has:
Do you mean the "immediate completion"? If so, you should probably use this defined term. |
(10). When describing the contents of namespace async::this_thread {
pmr::memory_resource* get_default_resource() noexcept;
pmr::memory_resource* set_default_resource(pmr::memory_resource* r) noexcept;
pmr::polymorphic_allocator<void> get_allocator();
typename asio::io_context::executor_type & get_executor();
void set_executor(asio::io_context::executor_type exec) noexcept;
} Otherwise, there is no indication that they are in a dedicated namespace. It is the more difficult as we also have |
(11). The documentation provides only section "Outline" for each header, but is missing the detailed description of individual functions. Because of this we do not know the contract of the functions: their preconditions, behavior in corner cases (such as empty vector passed to |
Incorporates much of #100.
This is a feedback from the review of the documentaiotn.
(1) . Section "Motivation" says:
What does this "threads" mean here? A link in the docs would be useful.
(2). Section "Coroutine Premier" > "Coroutines" gives example of a value consuming generator that does not compile:
Apparently, one has to yield and return values of the same type. But a general problem is that this example is unrelaistic. If I no longer require new vales, I just abandon the coroutine (and trigger the call to
.destroy
. Why would I inform the coroutine body that I want to break the loop. And this brings me to an even more general concern. I have seen no realistic motivating example for a value-consuming generator. Nor can I imagine one. Is it possible that this feature has no application?(3). Section "Coroutine Premier" > "Awaitables":
co_await
expression." -> "Awaitables are types that can be used as an operand in aco_await
expression."co_await
statement" -> "In aco_await
expression"co_await
expression"(4). Regarding "async uses an
asio::io_context
as its default event loop.":asio::io_context
link to the corresponding seciton of Boost.Asio docs?asio::io_context
as its default event loop" appears?The text was updated successfully, but these errors were encountered: