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

Function f0

example/when_all.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace co_context;
5
6task<int> f0() {
7 printf("f0 start.\n");
8 co_await timeout(std::chrono::seconds{1});
9 printf("f0 done.\n");
10 co_return 1;
11}
12
13shared_task<std::string> f1() {
14 printf("f1 start.\n");

Callers 1

runFunction · 0.70

Calls 1

timeoutFunction · 0.85

Tested by

no test coverage detected