When performing the following piece of code
boost::asio::socket s{...};
auto f1 = s.async_read(..., boost::asio::use_future);
auto f2 = s.async_write(..., boost::asio::use_future);
given that with use_future
we do not really specify the context, of where the promise will be set with result value - does this mean that 2 tasks could be running in different threads? and there is no guarantee on single-threadness(use must ensure thread-safety) here?
thanks!