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

Function f2

example/when_all.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19task<void> f2() {
20 printf("f2 start.\n");
21 co_await timeout(std::chrono::seconds{2});
22 printf("f2 done.\n");
23 co_return;
24}
25
26task<> run() {
27 // co_spawn f1 & f2 & f3, and wait for them

Callers 1

runFunction · 0.70

Calls 1

timeoutFunction · 0.85

Tested by

no test coverage detected