2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-24 02:12:12 +00:00
Commit Graph

367 Commits

Author SHA1 Message Date
Christopher Kohlhoff
a6f695ae55 More doc fixes for per-operation cancellation. 2021-08-05 11:23:31 +10:00
Christopher Kohlhoff
b12ae3da40 Document per-operation cancellation for coroutines. 2021-08-05 10:31:54 +10:00
Christopher Kohlhoff
f0ee983dca Regenerate documentation. 2021-08-04 22:18:50 +10:00
Christopher Kohlhoff
211c1a33c9 Add experimental::coro to overview. 2021-08-04 21:17:00 +10:00
Christopher Kohlhoff
09fb579d33 Update revision history. 2021-08-04 21:16:59 +10:00
Christopher Kohlhoff
3a585b615e Add missing C++14 examples. 2021-08-04 21:16:59 +10:00
Christopher Kohlhoff
481a1820a8 Add documentation for per-operation cancellation. 2021-08-04 20:38:17 +10:00
Christopher Kohlhoff
5ab0a54714 Update C++20 coroutines overview. 2021-08-04 20:38:17 +10:00
Christopher Kohlhoff
aafa4c6471 Document supported cancellation types. 2021-07-11 19:12:44 +10:00
Christopher Kohlhoff
2de6076965 Add revision history. 2021-07-08 13:14:38 +10:00
Christopher Kohlhoff
c47d0007c5 Exclude is_deferred trait specialisations from the docs. 2021-07-08 00:50:38 +10:00
Christopher Kohlhoff
17ef2577d8 Fix this_coro::throw_if_cancelled link in reference index. 2021-07-07 23:52:08 +10:00
Christopher Kohlhoff
0729e41f99 Regenerate documentation. 2021-07-07 22:47:10 +10:00
Christopher Kohlhoff
0cc4c7093a Clean up doc generation to accommodate new features. 2021-07-07 22:47:10 +10:00
Christopher Kohlhoff
9cc511935c Experimental features don't have convenience headers. 2021-07-07 22:47:10 +10:00
Christopher Kohlhoff
15b4f0eee2 Add new experimental facilities to the quick reference. 2021-07-07 22:47:10 +10:00
Christopher Kohlhoff
aa52f655e7 Add cancellation-related type requirements to quick reference. 2021-07-01 10:10:41 +10:00
Christopher Kohlhoff
2967887681 Fix CancellationSlot requirements table caption. 2021-07-01 10:08:52 +10:00
Christopher Kohlhoff
0e644260f6 Regenerate documentation. 2021-06-28 10:17:41 +10:00
Christopher Kohlhoff
0b0c4664d0 Add cancellation to reference documentation. 2021-06-28 10:14:54 +10:00
Christopher Kohlhoff
d9fffd9bce Regenerate platform macros documentation. 2021-06-05 17:43:30 +10:00
Christopher Kohlhoff
f807ab9aec Revision history. 2021-04-07 17:32:07 +10:00
Christopher Kohlhoff
efe2bc2051 Regenerate documentation. 2021-04-06 19:24:52 +10:00
Christopher Kohlhoff
06213e7378 Tell doxygen about the BOOST_ASIO_NOEXCEPT_IF macro. 2021-04-06 19:22:20 +10:00
Christopher Kohlhoff
3e88870e34 Exclude any_io_executor traits from documentation. 2021-03-04 15:45:56 +11:00
Christopher Kohlhoff
c970aba69b Use escaped names in index entries. 2021-03-04 15:45:56 +11:00
Christopher Kohlhoff
83503a2370 Regenerate documentation. 2021-03-04 10:00:02 +11:00
Christopher Kohlhoff
787d32a417 Add index entries for classes. 2021-03-04 09:09:00 +11:00
Christopher Kohlhoff
723982b867 Update copyright notices. 2021-02-25 08:29:05 +11:00
Christopher Kohlhoff
933e9373d2 Add missing SFINAE constraint to strand<>'s execute_member trait. 2020-12-03 12:14:41 +11:00
Christopher Kohlhoff
0e75749835 Fix revision history heading. 2020-12-01 10:08:36 +11:00
Christopher Kohlhoff
e2f224ab76 Revision history. 2020-12-01 10:03:15 +11:00
Christopher Kohlhoff
c31065b6c9 Remove link to defunct example. 2020-11-29 17:51:31 +11:00
Christopher Kohlhoff
23f2818953 Update list of tested configurations. 2020-11-29 17:50:33 +11:00
Christopher Kohlhoff
66ccbb3a23 Add documentation for more configuration macros. 2020-11-29 17:49:20 +11:00
Christopher Kohlhoff
50b9d5247f Improve build doc discoverability 2020-11-29 17:40:19 +11:00
Christopher Kohlhoff
c81ba25e9f Add auto-generated documentation for compiler/platform feature macros. 2020-11-29 17:39:38 +11:00
Christopher Kohlhoff
dfad49ed56 Add interim release notes. 2020-11-04 21:59:36 +11:00
Christopher Kohlhoff
eb1f1131c1 Add executor-converting construction/assignment to ip::basic_resolver. 2020-11-02 14:03:10 +11:00
Christopher Kohlhoff
311d355ab4 Add experimental::as_single completion token adapter.
The as_single completion token adapter can be used to specify that the
completion handler arguments should be combined into a single argument.
For completion signatures with a single parameter, the argument is
passed through as-is. For signatures with two or more parameters, the
arguments are combined into a tuple.

The as_single adapter may be used in conjunction with use_awaitable and
structured bindings as follows:

    auto [e, n] = co_await socket.async_read_some(
        boost::asio::buffer(data), as_single(use_awaitable));

Alternatively, it may be used as a default completion token like so:

    using default_token = as_single_t<use_awaitable_t<>>;
    using tcp_socket = default_token::as_default_on_t<tcp::socket>;
    // ...
    awaitable<void> do_read(tcp_socket socket)
    {
      // ...
      auto [e, n] = co_await socket.async_read_some(boost::asio::buffer(data));
      // ...
    }
2020-11-02 14:03:09 +11:00
Christopher Kohlhoff
c034e3906f Clarify when the select reactor is used on Windows. 2020-11-02 14:03:09 +11:00
Christopher Kohlhoff
b3c8f8ed5e Revert "Restore null pointer check for better performance."
This reverts commit 50b38b57e6. This
change was applied in the wrong spot and introduced an uninitialised
memory access. The corresponding entry in the Revision History has
also been removed.
2020-08-11 09:33:07 +10:00
Christopher Kohlhoff
fd68805a3f Update revision history. 2020-08-05 23:13:10 +10:00
Christopher Kohlhoff
2a0773e1e0 Add some basic documentation on standard executors support. 2020-08-05 23:13:10 +10:00
Christopher Kohlhoff
18deb3dc5f Document that there are multiple types of I/O execution context. 2020-08-05 22:54:41 +10:00
Christopher Kohlhoff
917e05ceb3 Clarify impact of any_io_executor change. 2020-08-05 22:51:20 +10:00
Christopher Kohlhoff
06f8c1f98d Add shape_type and index_type to static_thread_pool executor, as per specification. 2020-08-04 12:52:40 +10:00
Christopher Kohlhoff
e53feeb5bf Add constraints to strand<>'s constructor to prevent template instantiation recursion. 2020-07-31 18:47:27 +10:00
Christopher Kohlhoff
bbbda48bfb Mark constructors in synopses for nested classes and classes in sub-namespaces. 2020-07-30 10:40:56 +10:00
Christopher Kohlhoff
543c453423 Make blocking_t::always_t::is_preferable false as per specification. 2020-07-28 22:16:24 +10:00