org.reactress.Reactive

ReactiveOps

implicit class ReactiveOps[T] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReactiveOps
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReactiveOps(self: Reactive[T])

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (ReactiveOps[T], B)

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to ArrowAssoc[ReactiveOps[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def asSignal: ReactiveOps[T] with Signal[T]

    Downcasts this reactive into a signal.

    Downcasts this reactive into a signal.

    Throws an exception if the current reactive is not a signal.

    returns

    the signal version of the current reactive

  10. def asSignalOrElse(init: T): Signal[T]

    If the current reactive is a signal already this method downcasts it, otherwise it lifts it into a signal with the initial value init.

    If the current reactive is a signal already this method downcasts it, otherwise it lifts it into a signal with the initial value init.

    init

    optional value to use when converting the reactive to a signal

    returns

    the signal version of the current reactive

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def concat[S]()(implicit evidence: <:<[T, Reactive[S]], a: Arrayable[S], b: CanBeBuffered): Reactive[S] with Subscription

    Concatenates the events produced by all the reactives emitted by this.

    Concatenates the events produced by all the reactives emitted by this.

    This operation is only available for reactive values that emit other reactives as events. Once this and all the reactives unreact, this reactive unreacts.

    Use case:

    def concat[S](): Reactive[S]
    S

    the type of the events in reactives emitted by this

    evidence

    evidence that events of type T produced by this are actually reactive values of type S

    a

    evidence that arrays can be created for type S

    b

    evidence that buffering events is allowed

    returns

    a subscription and the reactive that concatenates all the events

    Note

    This operation potentially buffers events from the nested reactives. Unless each reactive emitted by this is known to unreact eventually, this operation should not be called. To enforce this, clients are required to import the CanBeBuffered evidence explicitly into the scope in which they call concat.

  13. def concat(that: Reactive[T])(implicit a: Arrayable[T], b: CanBeBuffered): Reactive[T] with Subscription

    Creates a concatenation of this and that reactive.

    Creates a concatenation of this and that reactive.

    The resulting reactive value produces all the events from this reactive until this unreacts, and then outputs all the events from that that happened before and after this unreacted. To do this, this operation potentially caches all the events from that. When that unreacts, the resulting reactive value unreacts.

    Use case:

    def concat(that: Reactive[T]): Reactive[T]
    that

    another reactive value for the concatenation

    a

    evidence that arrays can be created for the type T

    b

    evidence that the client allows events from that to be buffered

    returns

    a subscription and a reactive value that concatenates events from this and that

    Note

    This operation potentially caches events from that. Unless certain that this eventually unreacts, concat should not be used. To enforce this, clients must import the CanBeBuffered evidence explicitly into the scope in which they call concat.

  14. def ensuring(cond: (ReactiveOps[T]) ⇒ Boolean, msg: ⇒ Any): ReactiveOps[T]

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to Ensuring[ReactiveOps[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (ReactiveOps[T]) ⇒ Boolean): ReactiveOps[T]

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to Ensuring[ReactiveOps[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): ReactiveOps[T]

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to Ensuring[ReactiveOps[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): ReactiveOps[T]

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to Ensuring[ReactiveOps[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]

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

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

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

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. val self: Reactive[T]

  29. def signal(init: T): Signal[T] with Subscription

    Given an initial event init, converts this reactive into a Signal.

    Given an initial event init, converts this reactive into a Signal.

    The resulting signal initially contains the event init, and subsequently any event that the this reactive produces.

    init

    an initial value for the signal

    returns

    the signal version of the current reactive

  30. def sync[S, R](that: Reactive[S])(f: (T, S) ⇒ R)(implicit at: Arrayable[T], as: Arrayable[S], b: CanBeBuffered): Reactive[R] with Subscription

    Syncs the arrival of events from this and that reactive value.

    Syncs the arrival of events from this and that reactive value.

    Ensures that pairs of events from this reactive value and that reactive value are emitted together. If the events produced in time by this and that, the sync will be as follows:

    time   --------------------------->
    this   ----1---------2-------4---->
    that   --1-----2--3--------------->
    sync   ----1,1-------2,2-----4,3-->

    Pairs of events produced from this and that are then transformed using specified function f. For example, clients that want to output tuples do:

    val synced = (a sync b) { (a, b) => (a, b) }

    Clients that, for example, want to create differences in pairs of events do:

    val diffs = (a sync b)(_ - _)

    The resulting reactive unreacts either when this unreacts and there are no more buffered events from this, or when that unreacts and there are no more buffered events from that.

    Use case:

    def sync[S, R](that: Reactive[S])(f: (T, S) => R): Reactive[R]
    S

    the type of the events in that reactive

    R

    the type of the events in the resulting reactive

    that

    the reactive to sync with

    f

    the mapping function for the pair of events

    at

    evidence that arrays can be created for the type T

    as

    evidence that arrays can be created for the type S

    b

    evidence that the client allows events to be buffered

    returns

    a subscription and the reactive with the resulting events

    Note

    This operation potentially caches events from this and that. Unless certain that both this produces a bounded number of events before the that produces an event, and vice versa, this operation should not be called. To enforce this, clients must import the CanBeBuffered evidence explicitly into the scope in which they call sync.

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def union[S]()(implicit evidence: <:<[T, Reactive[S]]): Reactive[S] with Subscription

    Unifies the events produced by all the reactives emitted by this.

    Unifies the events produced by all the reactives emitted by this.

    This operation is only available for reactive values that emit other reactives as events. The resulting reactive unifies events of all the reactives emitted by this. Once this and all the reactives emitted by this unreact, the resulting reactive terminates.

    Example:

    time  -------------------------->
    this     --1----2--------3------>
                 ---------5----6---->
                   ---4----------7-->
    union -----1----2-4---5--3-6-7-->

    Use case:

    def union[S](): Reactive[S]
    S

    the type of the events in reactives emitted by this

    evidence

    evidence that events of type T produced by this are actually reactive values of type S

    returns

    a subscription and the reactive with the union of all the events

  34. def union(that: Reactive[T]): Reactive[T] with Subscription

    Creates a union of this and that reactive.

    Creates a union of this and that reactive.

    The resulting reactive value emits events from both this and that reactive. It unreacts when both this and that reactive unreact.

    that

    another reactive value for the union

    returns

    a subscription and the reactive value with unified events from this and that

  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (ReactiveOps[T], B)

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to ArrowAssoc[ReactiveOps[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (reactiveOps: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (reactiveOps: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: ReactiveOps[T]

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to ArrowAssoc[ReactiveOps[T]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (reactiveOps: ArrowAssoc[ReactiveOps[T]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: ReactiveOps[T]

    Implicit information
    This member is added by an implicit conversion from ReactiveOps[T] to Ensuring[ReactiveOps[T]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (reactiveOps: Ensuring[ReactiveOps[T]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ReactiveOps[T] to StringAdd

Inherited by implicit conversion any2stringfmt from ReactiveOps[T] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from ReactiveOps[T] to ArrowAssoc[ReactiveOps[T]]

Inherited by implicit conversion any2Ensuring from ReactiveOps[T] to Ensuring[ReactiveOps[T]]

Ungrouped