SchedulerCoroutineDispatcher

open 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

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

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

invokeOnTimeout

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

scheduleResumeAfterDelay

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

toString

open fun toString(): String