MCPcopy 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

deferFunction · 0.85
futureMethod · 0.80
terminateFunction · 0.50

Tested by

no test coverage detected