Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
using namespace co_context;
5
6
task<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
13
shared_task<std::string> f1() {
14
printf(
"f1 start.\n"
);
Callers
1
run
Function · 0.70
Calls
1
timeout
Function · 0.85
Tested by
no test coverage detected