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

Function main

example/echo_server.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21int main() {
22 io_context ctx;
23 ctx.co_spawn(server(1234));
24 ctx.start();
25 ctx.join();
26 return 0;
27}

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