async_run

Reviewers: ivica

Reviewed By: ivica

Subscribers: korina

Differential Revision: https://repo.mireo.local/D27342
This commit is contained in:
Bruno Iljazovic committed 2024-01-16 13:18:21 +01:00
1 parent 2f6751d162
commit 4f87b27861
29 files changed
+398 -85

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ BOOST_AUTO_TEST_CASE(test_omitting_props) {
using client_type = mqtt_client<test::test_stream>;
client_type c(executor, "");
c.brokers("127.0.0.1")
.run();
.async_run(asio::detached);
asio::steady_timer timer(c.get_executor());
timer.expires_after(std::chrono::milliseconds(200));
+1
View File
@@ -271,6 +271,7 @@ BOOST_AUTO_TEST_CASE(test_publish_cancellation) {
asio::io_context ioc;
using client_service_type = test::test_service<asio::ip::tcp::socket>;
auto svc_ptr = std::make_shared<client_service_type>(ioc.get_executor());
svc_ptr->run([](error_code){});
asio::cancellation_signal cancel_signal;
auto h = [&handlers_called](error_code ec, reason_code rc, puback_props) {