Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3rdparty/libprocess
/ func1
Method
func1
examples/example.cpp:36–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
~MyProcess() override {}
35
36
Future<int> func1()
37
{
38
promise.future().onAny(
39
defer([=](const Future<int>& future) {
40
terminate(self());
41
}));
42
return promise.future();
43
}
44
45
void func2(int i)
46
{
Callers
nothing calls this directly
Calls
3
defer
Function · 0.85
future
Method · 0.80
terminate
Function · 0.50
Tested by
no test coverage detected