Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Codesire-Deng/co_context
/ f0
Function
f0
example/when_any.cpp:7–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
using namespace co_context;
6
7
task<int> f0() {
8
printf(
"f0 start.\n"
);
9
co_await timeout(std::chrono::seconds{1});
10
printf(
"f0 done.\n"
);
11
co_return 1;
12
}
13
14
shared_task<std::string> f1() {
15
printf(
"f1 start.\n"
);
Callers
1
run
Function · 0.70
Calls
1
timeout
Function · 0.85
Tested by
no test coverage detected