MCPcopy Create free account
hub / github.com/Codesire-Deng/co_context / main

Function main

example/echo_server_MT.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int main() {
29 balancer.co_spawn(server(1234));
30 balancer.start();
31 for (auto &ctx : worker) {
32 ctx.start();
33 }
34 balancer.join(); // never stop
35 return 0;
36}

Callers

nothing calls this directly

Calls 4

startMethod · 0.80
joinMethod · 0.80
serverFunction · 0.70
co_spawnMethod · 0.45

Tested by

no test coverage detected