Fetcher Routine

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

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