Optional coordinator for polling many HttpClientOperation instances. More...
#include <HttpClientScheduler.h>
Public Member Functions | |
| Result | init (const HttpClientOperationSchedulerMemory &memory) |
| Result | close () |
| Result | markReady (HttpClientOperation &operation) |
| Result | pollReady (size_t &numPolled, uint32_t waitMilliseconds=0) |
| Result | pollAll (size_t &numPolled) |
| size_t | getNumReadyOperations () const |
| size_t | getNumOperations () const |
| size_t | getNumRequestsInFlight () const |
| bool | isOperationRegistered (HttpClientOperation &operation) const |
| bool | hasRequestsInFlight () const |
| bool | isInitialized () const |
Optional coordinator for polling many HttpClientOperation instances.
The scheduler installs itself as the operation notifier. It does not own operations, operation memory, or request state, and it does not start requests. It only tracks which operations queued events so callers can avoid blindly polling every operation on each loop iteration.