SchedulerCoroutineDispatcher

class SchedulerCoroutineDispatcher : 
    CoroutineDispatcher,
    Delay

Implements CoroutineDispatcher on top of an arbitrary Scheduler.

Parameters

scheduler - a scheduler.

Constructors

<init>

SchedulerCoroutineDispatcher(scheduler: Scheduler)

Implements CoroutineDispatcher on top of an arbitrary Scheduler.

Functions

dispatch

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

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

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