2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-28 06:42:08 +00:00
Files
asio/include
Christopher Kohlhoff 8164518ace Add experimental::append completion token adapter.
The append completion token adapter can be used to pass additional
completion handler arguments. For example:

  timer.async_wait(
      boost::asio::experimental::append(
        [](std::error_code ec, int i)
        {
          // ...
        },
      42)
    );

  std::future<int> f = timer.async_wait(
      boost::asio::experimental::append(
        asio::use_future,
        42
      )
    );
2021-06-28 10:18:12 +10:00
..