execute

fun execute(currentContext: Class<*>, routine: () -> Unit, repeatRoutine: Boolean = true, refreshDelay: Long = 1000)

Function to execute the refresh routine designed

Parameters

currentContext

: the current context where the refreshRoutine is executing

routine

: the refresh routine to execute

repeatRoutine

: whether repeat the routine or execute a single time

refreshDelay

: the delay between the execution of the requests