CallbackExecutor

Generic contract for an executor of Runnable callbacks.

Functions

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

Cancels the given runnable if it is still pending.

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

Posts the given runnable using the executor's Thread.

Link copied to clipboard
abstract fun postDelayed(runnable: Runnable, delay: Duration)

Posts the given runnable using the executor's Thread with a given delay.