Dispatch Queue
interface DispatchQueue
Interface which abstracts away scheduling future tasks, allowing fake instances to be injected and manipulated during tests
Inheritors
Functions
Link copied to clipboard
abstract fun queueAtFixedRate(delay: Long, period: Long, unit: TimeUnit, runnable: () -> Unit): DispatchWorkItem
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is, executions will commence after initialDelay, then initialDelay + period, then initialDelay + 2 * period, and so on.