MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / slowOperation

Function slowOperation

Examples/AwaitDeadline/AwaitDeadline.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace SC
15{
16static AwaitTask slowOperation(AwaitEventLoop& await)
17{
18 SC_CO_TRY(co_await await.sleep({1000}));
19 co_return Result(true);
20}
21
22static AwaitTask deadlineWorkflow(AwaitEventLoop& await, AwaitTimeoutResult& timeout)
23{

Callers 1

deadlineWorkflowFunction · 0.85

Calls 2

sleepMethod · 0.80
ResultClass · 0.50

Tested by

no test coverage detected