openrndr / org.openrndr / PumpDispatcher

PumpDispatcher

class PumpDispatcher : MainCoroutineDispatcher, Delay

Constructors

<init>

PumpDispatcher()

Properties

immediate

val immediate: MainCoroutineDispatcher

Functions

dispatch

fun dispatch(context: CoroutineContext, block: Runnable): Unit

invokeOnTimeout

fun invokeOnTimeout(timeMillis: Long, block: Runnable): DisposableHandle

isDispatchNeeded

fun isDispatchNeeded(context: CoroutineContext): Boolean

pump

fun pump(): Unit

scheduleResumeAfterDelay

fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit>): Unit