withRetry

abstract suspend fun withRetry(block: suspend () -> T): T

Executes the block function under retry control.

Return

The result of executing the block function.

Parameters

block

Function to which retry logic is applied.