withRetries

suspend fun <R> withRetries(continuous: Boolean = false, onError: suspend (Throwable) -> Unit = {}, block: suspend () -> R)