execute
fun execute(currentContext: Class<*>, routine: () -> Unit, repeatRoutine: Boolean = true, refreshDelay: Long = 1000)
Function to execute the refresh routine designed
Parameters
current Context
: the current context where the refreshRoutine is executing
routine
: the refresh routine to execute
repeat Routine
: whether repeat the routine or execute a single time
refresh Delay
: the delay between the execution of the requests