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

Function f2

example/when_any.cpp:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20task<void> f2() {
21 printf("f2 start.\n");
22 co_await timeout(std::chrono::seconds{2});
23 printf("f2 done.\n");
24 co_return;
25}
26
27task<> run() {
28 // var : std::variant<std::monostate, int, const char *>;

Callers 1

runFunction · 0.70

Calls 1

timeoutFunction · 0.85

Tested by

no test coverage detected