Swing

object Swing : CoroutineDispatcher, Delay

Dispatches execution onto Swing event dispatching thread and provides native delay support.

Functions

dispatch

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

invokeOnTimeout

fun invokeOnTimeout(
    time: Long,
    unit: TimeUnit,
    block: Runnable
): DisposableHandle

scheduleResumeAfterDelay

fun scheduleResumeAfterDelay(
    time: Long,
    unit: TimeUnit,
    continuation: CancellableContinuation<Unit>
): Unit

toString

fun toString(): String