boost::asio with boost::unique_future
Boost.Asio only provides first-class support for asynchronous operations to return a C++11 std::future or an actual value in stackful coroutines. Nevertheless, the requirements on asynchronous operations documents how to customize the return type for other types, such as Boost.Thread’s boost::unique_future. It requires: A specialization of the handler_type template. This template is used to determine the … Read more