CallbackExecutor

interface CallbackExecutor

Generic contract for an executor of Runnable callbacks.

Important: This is a Public Preview API. It may be changed or removed at any time.

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.

Inheritors

Link copied to clipboard