Trait

io.scalajs.npm.rx

Scheduler

Related Doc: package rx

Permalink

trait Scheduler extends Object

Represents a Scheduler

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scheduler
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 catch(handler: Function): Scheduler.this.type

    Permalink

    Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions.

    Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions.

    handler

    (Function): Handler that's run if an exception is caught. The error will be rethrown if the handler returns false.

    returns

    (Scheduler): Wrapper around the original scheduler, enforcing exception handling.

    Example:
    1. Rx.Scheduler.prototype.catch(handler)

  6. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def now(): AbsoluteTime

    Permalink

    Gets the current time according to the Scheduler implementation.

    Gets the current time according to the Scheduler implementation.

    returns

    (Number): The current time according to the Scheduler implementation.

    Example:
    1. Rx.Scheduler.prototype.now()

  19. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  20. def schedule(state: Any, action: Function): Disposable

    Permalink

    Schedules an action to be executed with state.

    Schedules an action to be executed with state.

    state

    (Any): State passed to the action to be executed.

    action

    (Function): Action to execute with the following arguments:

    • scheduler: (Scheduler) - The current Scheduler
    • state: (Any) - The current state</xli>
    returns

    (Disposable): The disposable object used to cancel the scheduled action (best effort).

    Example:
    1. Rx.Scheduler.prototype.schedule(state, action)

  21. def scheduleFuture(state: Any, dueTime: |[RelativeTime, Date], action: Function): Disposable

    Permalink

    Schedules an action to be executed at the specified relative due time.

    Schedules an action to be executed at the specified relative due time. Note this only works with the built-in Rx.Scheduler.default scheduler, as the rest will throw an exception as the framework does not allow for blocking.

    state

    (Any): State passed to the action to be executed.

    dueTime

    (Number | Date): Relative or absolute time at which to execute the action.

    action

    (Function): Action to execute with the following arguments:

    • scheduler: (Scheduler) - The current Scheduler
    • state: (Any) - The current state
    returns

    (Disposable): The disposable object used to cancel the scheduled action (best effort).

    Example:
    1. Rx.Scheduler.prototype.scheduleFuture(state, dueTime, action)

  22. def schedulePeriodic(state: Any, period: Period, action: Function): Disposable

    Permalink

    Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities.

    Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation.

    state

    (Any): State passed to the action to be executed.

    period

    (Number): Period for running the work periodically in ms.

    action

    (Function): Action to execute with the following parameters. Note that the return value from this function becomes the state in the next execution of the action.

    • state: Any - The state passed in
    returns

    (Disposable): The disposable object used to cancel the scheduled action (best effort).

    Example:
    1. Rx.Scheduler.prototype.schedulePeriodic(state, period, action)

  23. def scheduleRecursive(state: Any, action: Function): Disposable

    Permalink

    Schedules an action to be executed with state.

    Schedules an action to be executed with state.

    state

    (Any): State passed to the action to be executed.

    action

    (Function): Action to execute with the following arguments:

    • state: (Any) - The current state
    • recurse: (Function) - The action to execute for recursive actions which takes the form of recurse(newState) where the new state is passed to be executed again
    returns

    (Disposable): The disposable object used to cancel the scheduled action (best effort).

    Example:
    1. Rx.Scheduler.prototype.scheduleRecursive(state, action)

  24. def scheduleRecursiveFuture(state: Any, dueTime: AbsoluteTime, action: Function): Disposable

    Permalink

    Schedules an action to be executed recursively at a specified absolute or relative due time.

    Schedules an action to be executed recursively at a specified absolute or relative due time. Note this only works with the built-in Rx.Scheduler.timeout scheduler, as the rest will throw an exception as the framework does not allow for blocking.

    state

    (Any): State passed to the action to be executed.

    dueTime

    (Number): Absolute time at which to execute the action for the first time.

    action

    (Function): Action to execute with the following arguments:

    • state: (Any) - The current state
    • recurse: (Function) - The action to execute for recursive actions which takes the form of recurse(newState, dueTime)
    returns

    (Disposable): The disposable object used to cancel the scheduled action (best effort).

    Example:
    1. Rx.Scheduler.prototype.scheduleRecursiveFuture(state, dueTime, action)

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

    Permalink
    Definition Classes
    AnyRef
  26. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  29. final def wait(): Unit

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

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

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped