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

Method start

example/cpp20/coroutines/chat_server.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 void start()
98 {
99 room_.join(shared_from_this());
100
101 co_spawn(socket_.get_executor(),
102 [self = shared_from_this()]{ return self->reader(); },
103 detached);
104
105 co_spawn(socket_.get_executor(),
106 [self = shared_from_this()]{ return self->writer(); },
107 detached);
108 }
109
110 void deliver(const std::string& msg)
111 {

Callers 1

listenerFunction · 0.45

Calls 5

readerMethod · 0.95
writerMethod · 0.95
co_spawnFunction · 0.50
joinMethod · 0.45
get_executorMethod · 0.45

Tested by

no test coverage detected