| 1615 | } |
| 1616 | return Result(true); |
| 1617 | } |
| 1618 | |
| 1619 | SC::Result SC::HttpClientOperation::poll(uint32_t timeoutMilliseconds) |
| 1620 | { |
| 1621 | if (not initialized) |
| 1622 | return Result::Error(HttpClientResultCategory, HttpClientError::OperationNotInitialized); |
| 1623 | |
| 1624 | SC_TRY(processPendingEvents()); |
| 1625 | if (timeoutMilliseconds == 0 or not requestInFlight) |
| 1626 | { |
| 1627 | return Result(true); |
| 1628 | } |
| 1629 | |
| 1630 | eventMutex.lock(); |
| 1631 | while (requestInFlight and eventCount == 0) |
nothing calls this directly
no test coverage detected