MCPcopy Create free account
hub / github.com/boostorg/cobalt / co_main

Function co_main

example/echo_server.cpp:69–73  ·  view source on GitHub ↗

tag::main[]

Source from the content-addressed store, hash-verified

67
68// tag::main[]
69cobalt::main co_main(int argc, char ** argv)
70{
71 co_await cobalt::with(cobalt::wait_group(), &run_server); // <1>
72 co_return 0u;
73}
74// end::main[]

Callers

nothing calls this directly

Calls 2

withFunction · 0.85
wait_groupClass · 0.85

Tested by

no test coverage detected