mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-08-01 05:24:50 +02:00
fix tests
Summary: related to T12015 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D26693
This commit is contained in:
@@ -165,9 +165,9 @@ int main(int argc, char** argv) {
|
||||
.brokers("mqtt.broker", 1883)
|
||||
.run();
|
||||
|
||||
asio::co_spawn(ioc.get_executor(), coroutine(c), asio::detached);
|
||||
co_spawn(ioc.get_executor(), coroutine(c), asio::detached);
|
||||
// or...
|
||||
asio::co_spawn(ioc.get_executor(), nothrow_coroutine(c), asio::detached);
|
||||
co_spawn(ioc.get_executor(), nothrow_coroutine(c), asio::detached);
|
||||
|
||||
ioc.run();
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ int main() {
|
||||
asio::io_context ioc;
|
||||
|
||||
// Spawn the coroutine.
|
||||
asio::co_spawn(ioc.get_executor(), client_publisher(ioc), asio::detached);
|
||||
co_spawn(ioc.get_executor(), client_publisher(ioc), asio::detached);
|
||||
|
||||
// Start the execution.
|
||||
ioc.run();
|
||||
|
@@ -71,7 +71,7 @@ int main() {
|
||||
asio::io_context ioc;
|
||||
|
||||
// Spawn the coroutine.
|
||||
asio::co_spawn(ioc, client_receiver(ioc), asio::detached);
|
||||
co_spawn(ioc, client_receiver(ioc), asio::detached);
|
||||
|
||||
// Start the execution.
|
||||
ioc.run();
|
||||
|
Reference in New Issue
Block a user