Polling Api
Public abstraction layer for consumers. Exposes a small, stable API surface. Internals are delegated to the PollingEngine implementation.
Plain-English entrypoints:
startPolling { ... } — start and observe via Flow
doPolling { ... } — alias for startPolling, reads more naturally in code
run(config) — run synchronously (suspending) and return a terminal outcome
Inheritors
Functions
Number of active polling sessions.
Cancel a session using the session handle.
Cancel a session by ID.
Compose multiple polling configs sequentially.
Alias for startPolling that reads more naturally in codebases. Example: Polling.doPolling { fetch = { ... } }
IDs of active polling sessions.
One-shot polling that runs to completion synchronously (suspending).
Start a new polling session using the fluent builder DSL.
Update backoff/options for a running session by ID.