RxOptionVar

wvlet.airframe.rx.RxOptionVar
class RxOptionVar[A](variable: RxVar[Option[A]]) extends RxOption[A] with RxVarOps[Option[A]]

RxVar implementation for Option[A] type values

Attributes

Graph
Supertypes
trait RxVarOps[Option[A]]
trait RxOption[A]
trait Rx[Option[A]]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def foreach[U](f: Option[A] => U): Cancelable

Attributes

Definition Classes
override def foreachEvent[U](effect: RxEvent => U): Cancelable

Attributes

Definition Classes
override def get: Option[A]

Attributes

Definition Classes
override def parents: Seq[Rx[_]]

Attributes

Definition Classes
override def setException(e: Throwable): Unit

Propagate an error to the subscribers

Propagate an error to the subscribers

Attributes

Definition Classes
override def stop(): Unit

Stop updating this variable and send OnCompletion event to the downstream subscribers. After this method is called, the behavior of the downstream subscribers is undefined for further updates of this variable.

Stop updating this variable and send OnCompletion event to the downstream subscribers. After this method is called, the behavior of the downstream subscribers is undefined for further updates of this variable.

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
override def update(updater: Option[A] => Option[A], force: Boolean): Unit

Updates the variable and trigger the recalculation of the subscribers currentValue => newValue

Updates the variable and trigger the recalculation of the subscribers currentValue => newValue

Attributes

Definition Classes

Inherited methods

def :=(newValue: Option[A]): Unit

Attributes

Inherited from:
RxVarOps
def cache[A1 >: A]: RxOptionCache[A1]

Attributes

Inherited from:
RxOption
def filter(f: A => Boolean): RxOption[A]

Attributes

Inherited from:
RxOption
def flatMap[B](f: A => Rx[B]): RxOption[B]

Attributes

Inherited from:
RxOption
def forceSet(newValue: Option[A]): Unit

Attributes

Inherited from:
RxVarOps
def forceUpdate(updater: Option[A] => Option[A]): Unit

Update the variable and force notification to subscribers

Update the variable and force notification to subscribers

Attributes

Inherited from:
RxVarOps
def getOrElse[A1 >: A](default: => A1): RxStream[A1]

Attributes

Inherited from:
RxOption
def getOrElseRx[A1 >: A](default: => Rx[A1]): RxStream[A1]

Attributes

Inherited from:
RxOption
def map[B](f: A => B): RxOption[B]

Attributes

Inherited from:
RxOption
def orElse[A1 >: A](default: => Option[A1]): RxOption[A1]

Attributes

Inherited from:
RxOption
def recover[U](f: PartialFunction[Throwable, U]): RxStream[U]

Recover from a known error and emit a replacement value

Recover from a known error and emit a replacement value

Attributes

Inherited from:
Rx
def recoverWith[A](f: PartialFunction[Throwable, Rx[A]]): RxStream[A]

Recover from a known error and emit replacement values from a given Rx

Recover from a known error and emit replacement values from a given Rx

Attributes

Inherited from:
Rx
def run[U](effect: Option[A] => U): Cancelable

Evaluate this Rx[A] and apply the given effect function. Once OnError(e) or OnCompletion is observed, it will stop the evaluation.

Evaluate this Rx[A] and apply the given effect function. Once OnError(e) or OnCompletion is observed, it will stop the evaluation.

Attributes

Inherited from:
Rx
def runContinuously[U](effect: Option[A] => U): Cancelable

Keep evaluating Rx[A] even if OnError(e) or OnCompletion is reported. This is useful for keep processing streams.

Keep evaluating Rx[A] even if OnError(e) or OnCompletion is reported. This is useful for keep processing streams.

Attributes

Inherited from:
Rx
def set(newValue: Option[A]): Unit

Attributes

Inherited from:
RxVarOps
def subscribe[U](subscriber: Option[A] => U): Cancelable

Attributes

Inherited from:
Rx
override def toRxStream: RxStream[Option[A]]

Attributes

Definition Classes
Inherited from:
RxOption
def toSeq: Seq[A]

Materialize the stream as Seq[A]. This works only for the finite stream and for Scala JVM.

Materialize the stream as Seq[A]. This works only for the finite stream and for Scala JVM.

Attributes

Inherited from:
Rx
def transform[B](f: Option[A] => B): RxStream[B]

Attributes

Inherited from:
RxOption
def transformOption[B](f: Option[A] => Option[B]): RxOption[B]

Attributes

Inherited from:
RxOption
def transformRx[B](f: Option[A] => Rx[B]): RxStream[B]

Attributes

Inherited from:
RxOption
def transformRxOption[B](f: Option[A] => RxOption[B]): RxOption[B]

Attributes

Inherited from:
RxOption
def withFilter(f: A => Boolean): RxOption[A]

Attributes

Inherited from:
RxOption