mirror of
https://github.com/boostorg/asio.git
synced 2026-01-28 06:42:08 +00:00
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
)
);