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

Method allocatorWait

Tests/Libraries/Await/AwaitTest.cpp:1497–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495 static AwaitTask waitForCompletedChild(AwaitEventLoop& await)
1496 {
1497 AwaitTask child = waitTwice(await);
1498 SC_CO_TRY(await.spawn(child));
1499
1500 AwaitTimeoutResult timeoutResult;
1501 SC_CO_TRY(co_await await.waitFor(child, 100_ms, &timeoutResult));
1502 if (timeoutResult.timedOut)
1503 {
1504 co_return Result::Error("Await waitFor completed child timed out");

Callers

nothing calls this directly

Calls 2

sleepMethod · 0.80
ResultClass · 0.50

Tested by

no test coverage detected