Scheduler

interface Scheduler

A queue to submit tasks to for asynchronous execution.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun execute(runnable: Runnable)

Schedules a Runnable for execution at some point in the future. Tasks will typically be executed on a first-in-first-out manner, but this depends on the Scheduler implementation.

Link copied to clipboard
abstract fun schedule(runnable: Runnable): Disposable

Schedules a Runnable for execution at some point in the future. Tasks will typically be executed on a first-in-first-out manner, but this depends on the Scheduler implementation.

abstract fun schedule(delay: TimeFrame, runnable: Runnable): Disposable

Schedules a Runnable for execution at some point in the future, but delayed by the provided delay. Tasks will not be executed before this delay.