MCPcopy Create free account
hub / github.com/boostorg/asio / start

Method start

example/cpp20/channels/mutual_exclusion_1.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void start()
61 {
62 co_spawn(socket_.get_executor(),
63 [self = shared_from_this()]{ return self->handle_messages(); },
64 detached);
65
66 co_spawn(socket_.get_executor(),
67 [self = shared_from_this()]{ return self->send_heartbeats(); },
68 detached);
69 }
70
71private:
72 void stop()

Callers 1

listenFunction · 0.45

Calls 4

handle_messagesMethod · 0.95
send_heartbeatsMethod · 0.95
co_spawnFunction · 0.50
get_executorMethod · 0.45

Tested by

no test coverage detected