All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ovh.plrapps.mapcompose.utils.ApiUtils.kt Maven / Gradle / Ivy

Go to download

A Compose Multiplatform library to display tiled maps, with support for markers, paths, and rotation

The newest version!
package ovh.plrapps.mapcompose.utils

import kotlinx.coroutines.delay

internal suspend fun withRetry(maxRetry: Int, intervalMs: Long, block: suspend () -> Boolean) {
    var cnt = 0
    var res = block()
    while (!res && cnt < maxRetry) {
        delay(intervalMs)
        res = block()
        cnt++
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy