Packages

c

monix.execution.schedulers

ShiftedRunnable

final class ShiftedRunnable extends Runnable

Runnable that defers the execution of the given reference with an executeAsync.

This is useful for example when implementing scheduleOnce, to introduce a boundary between the scheduling and the execution, otherwise risk executing the runnable on the wrong thread-pool.

Source
ShiftedRunnable.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShiftedRunnable
  2. Runnable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ShiftedRunnable(r: Runnable, s: Scheduler)

    r

    is the runnable to execute

    s

    is the scheduler that does the execution

Value Members

  1. def run(): Unit
    Definition Classes
    ShiftedRunnable → Runnable