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

Function main

example/stop_token.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40int main() {
41 io_context ctx;
42 ctx.co_spawn(f());
43 ctx.start();
44 ctx.join();
45 return 0;
46}

Callers

nothing calls this directly

Calls 4

startMethod · 0.80
joinMethod · 0.80
fFunction · 0.70
co_spawnMethod · 0.45

Tested by

no test coverage detected