RxOption

wvlet.airframe.rx.RxOption
trait RxOption[+A] extends Rx[Option[A]]

Attributes

Graph
Supertypes
trait Rx[Option[A]]
class Object
trait Matchable
class Any
Known subtypes
trait RxOptionCache[A]
class RxOptionOp[A]
class RxOptionVar[A]

Members list

Concise view

Value members

Abstract methods

protected def in: RxStream[Option[A]]

Concrete methods

def cache[A1 >: A]: RxOptionCache[A1]
def filter(f: A => Boolean): RxOption[A]
def flatMap[B](f: A => Rx[B]): RxOption[B]
def getOrElse[A1 >: A](default: => A1): RxStream[A1]
def getOrElseRx[A1 >: A](default: => Rx[A1]): RxStream[A1]
def map[B](f: A => B): RxOption[B]
def orElse[A1 >: A](default: => Option[A1]): RxOption[A1]
override def toRxStream: RxStream[Option[A]]

Attributes

Definition Classes
def transform[B](f: Option[A] => B): RxStream[B]
def transformOption[B](f: Option[A] => Option[B]): RxOption[B]
def transformRx[B](f: Option[A] => Rx[B]): RxStream[B]
def transformRxOption[B](f: Option[A] => RxOption[B]): RxOption[B]
def withFilter(f: A => Boolean): RxOption[A]

Inherited methods

def parents: Seq[Rx[_]]

Attributes

Inherited from:
Rx
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 subscribe[U](subscriber: Option[A] => U): Cancelable

Attributes

Inherited from:
Rx
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