Polling Api
interface PollingApi
Public abstraction layer for consumers. Exposes a small, stable API surface. Internals are delegated to the PollingEngine implementation.
Inheritors
Functions
Link copied to clipboard
Number of active polling sessions.
Link copied to clipboard
Cancel a session using the session handle.
Cancel a session by ID.
Link copied to clipboard
Compose multiple polling configs sequentially.
Link copied to clipboard
IDs of active polling sessions.
Link copied to clipboard
One-shot polling that runs to completion synchronously (suspending).
Link copied to clipboard
abstract fun <T> startPolling(config: PollingConfig<T>, onComplete: (PollingOutcome<T>) -> Unit): PollingSession
Start a new polling session. Returns a lightweight PollingSession handle.
Link copied to clipboard
Update backoff/options for a running session by ID.