NetworkStateObserverImpl
Constructors
Functions
Link copied to clipboard
internal suspend fun NetworkStateObserver.delayBeforeSyncRetry(retryDelay: Duration, exponentialDurationHelper: ExponentialDurationHelper, logger: KaliumLogger, syncType: SyncType, timeSource: TimeSource = TimeSource.Monotonic, onRetryStateChanged: suspend (SyncRetryStatus) -> Unit = {}, retryController: SyncRetryController = SyncRetryController(), failureGeneration: Long? = null, previousNetworkId: String? = observeCurrentNetwork().value?.id)
Waits for retryDelay before the next sync retry attempt, completing earlier if internet connectivity comes back in the meantime, or if a validated network other than previousNetworkId becomes available.
Link copied to clipboard
open suspend fun delayUntilConnectedWithInternetAgain(delay: Duration, previousNetworkId: String?): Boolean
open suspend fun delayUntilConnectedWithInternetAgain(delay: Duration, previousNetworkId: String?): Boolean
open suspend fun delayUntilConnectedWithInternetAgain(delay: Duration, previousNetworkId: String?): Boolean
open suspend fun delayUntilConnectedWithInternetAgain(delay: Duration, previousNetworkId: String?): Boolean
Link copied to clipboard
Link copied to clipboard