Fetcher
Routine
private data class FetcherRoutine(val currentContext: Class<*>, val routine: () -> Unit, val repeatRoutine: Boolean = true, val refreshDelay: Long = 1000)
The FetcherRoutine data class is useful to memorize the last routine executed by the execute method
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