Support BOOST_ASIO_NO_TS_EXECUTORS

This commit is contained in:
Richard Hodges
2020-07-04 07:35:14 +02:00
parent 5f1adfbc6d
commit 060f59685c
20 changed files with 285 additions and 92 deletions
@@ -253,7 +253,7 @@ int main(int argc, char** argv)
// The async operations will run on the system_executor.
// Because the main thread has nothing to do in this example, we just wait
// for the system_executor to run out of work.
net::system_executor().context().join();
net::query(net::system_executor(), net::execution::context).join();
return EXIT_SUCCESS;
}