KtDispatcher

interface KtDispatcher : CoroutineContext, Delay

The base interface of CoroutineContext for dispatchers.

Functions

Link copied to clipboard
open suspend fun delay(time: Long)
Link copied to clipboard
abstract fun execute(block: Runnable)

Immediately executes the passed block.

Link copied to clipboard
abstract fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
abstract operator fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
open fun invokeOnTimeout(timeMillis: Long, block: Runnable, context: CoroutineContext): DisposableHandle
Link copied to clipboard
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
Link copied to clipboard
abstract fun queue(block: Runnable)

Schedules the execution of the passed block.

Link copied to clipboard
abstract fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit>)

Inheritors

Link copied to clipboard
Link copied to clipboard