Object

monix.execution

RunLoop

Related Doc: package execution

Permalink

object RunLoop

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RunLoop
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type FrameId = Int

    Permalink

    An alias for a number representing an ID for the current stack frame.

  2. class Macros extends HygieneUtilMacros with InlineMacros

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. macro def isAlwaysAsync(implicit s: Scheduler): Boolean

    Permalink

    Returns true if the run-loop implied by the given Scheduler is always doing asynchronous execution or not.

    Returns true if the run-loop implied by the given Scheduler is always doing asynchronous execution or not.

    Note that when isAlwaysAsync is true, that means that RunLoop.start, RunLoop.step.

    s

    is the Scheduler that drives our run-loop.

  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. macro def start(runnable: (FrameId) ⇒ Unit)(implicit s: Scheduler): Unit

    Permalink

    Executes the given callback, effectively starting a run-loop.

    Executes the given callback, effectively starting a run-loop.

    Depending on Scheduler.batchedExecutionModulus, execution will happen either synchronously (current thread and call-stack) or scheduled for asynchronous execution (by Scheduler.execute). To find out what will happen before calling start, you can use the RunLoop.isAlwaysAsync helper.

    runnable

    is an expression receiving the next FrameId at the time of execution, to be used in the next runLoop invocation.

    s

    is the Scheduler that drives our run-loop.

  17. macro def startAsync(runnable: (FrameId) ⇒ Unit)(implicit s: Scheduler): Unit

    Permalink

    Executes the given callback, forcing an asynchronous boundary and starting a run-loop.

    Executes the given callback, forcing an asynchronous boundary and starting a run-loop.

    Compared with RunLoop.start this macro always executes the given runnable asynchronously.

    runnable

    is an expression receiving the next FrameId at the time of execution, to be used in the next runLoop invocation.

    s

    is the Scheduler that drives our run-loop.

  18. macro def startNow(runnable: (FrameId) ⇒ Unit)(implicit s: Scheduler): Unit

    Permalink

    Executes the given callback immediately, irregardless of the Scheduler configuration.

    Executes the given callback immediately, irregardless of the Scheduler configuration.

    Compared with RunLoop.start this macro always executes the given runnable immediately.

    runnable

    is an expression to execute, receiving the next FrameId at the time of execution, to be used in the next runLoop invocation.

    s

    is the Scheduler that drives our run-loop.

  19. macro def step(frameId: FrameId)(runnable: (FrameId) ⇒ Unit)(implicit s: Scheduler): Unit

    Permalink

    Given the current frameId, executes the given callback.

    Given the current frameId, executes the given callback.

    Depending on Scheduler.batchedExecutionModulus, execution will happen either synchronously (current thread and call-stack) or scheduled for asynchronous execution (by Scheduler.execute).

    frameId

    is a number identifying the current stack frame. Should start from zero.

    runnable

    is an expression receiving the next FrameId at the time of execution, to be used in the next runLoop invocation.

    s

    is the Scheduler that drives our run-loop.

  20. macro def stepInterruptibly(active: BooleanCancelable, frameId: FrameId)(runnable: (FrameId) ⇒ Unit)(implicit s: Scheduler): Unit

    Permalink

    Given the current frameId, executes the given callback.

    Given the current frameId, executes the given callback. Takes a BooleanCancelable as a parameter that can be used to cancel the loop.

    Depending on Scheduler.batchedExecutionModulus, execution will happen either synchronously (current thread and call-stack) or scheduled for asynchronous execution (by Scheduler.execute).

    active

    is a cancelable that can be used to check if the run-loop is canceled and thus avoid to trigger the next step. Note that checking active.isCanceled is weak and only happens on asynchronous boundaries for performance reasons (in other words don't count on cancellation to be immediate).

    frameId

    is a number identifying the current stack frame. Should start from zero.

    runnable

    is a callback receiving the next FrameId at the time of execution, to be used in the next runLoop invocation.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped