PollingStatus

sealed class PollingStatus

Sealed class representing the status of a polling operation.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Complete(val status: String) : PollingStatus

Indicates that polling has completed successfully.

Link copied to clipboard
data class Continue(val retryCount: Int, val maxRetries: Int) : PollingStatus

Indicates that polling is in progress.

Link copied to clipboard
data class Error(val exception: Exception) : PollingStatus

Indicates that an error occurred during polling.

Link copied to clipboard
data object Expired : PollingStatus

Indicates that the challenge has expired because the server returned a non-200 HTTP response. Polling stops immediately when this status is emitted.

Link copied to clipboard
data object TimedOut : PollingStatus

Indicates that polling has expired (max retries reached).