Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
task<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
27
task<> run() {
28
// var : std::variant<std::monostate, int, const char *>;
Callers
1
run
Function · 0.70
Calls
1
timeout
Function · 0.85
Tested by
no test coverage detected