| 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"); |