Rx

wvlet.airframe.rx.Rx
See theRx companion trait
object Rx extends LogSupport

Attributes

Companion
trait
Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Rx.type

Members list

Type members

Classlikes

case class CacheOp[A](input: RxOps[A], var lastValue: Option[A], var lastUpdatedNanos: Long, expirationAfterWriteNanos: Option[Long], ticker: Ticker) extends UnaryRx[A, A], RxCache[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait RxCache[A]
class UnaryRx[A, A]
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class ConcatOp[A](first: RxOps[A], next: RxOps[A]) extends Rx[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class FilterOp[A](input: Rx[A], cond: A => Boolean) extends UnaryRx[A, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, A]
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class FlatMapOp[A, B](input: Rx[A], f: A => RxOps[B]) extends UnaryRx[A, B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, B]
trait Rx[B]
trait RxOps[B]
class Object
trait Matchable
class Any
Show all
case class IntervalOp(interval: Long, unit: TimeUnit) extends Rx[Long]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[Long]
trait RxOps[Long]
class Object
trait Matchable
class Any
Show all
case class Join3Op[A, B, C](a: RxOps[A], b: RxOps[B], c: RxOps[C]) extends Rx[(A, B, C)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B, C)]
trait RxOps[(A, B, C)]
class Object
trait Matchable
class Any
Show all
case class Join4Op[A, B, C, D](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D]) extends Rx[(A, B, C, D)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B, C, D)]
trait RxOps[(A, B, C, D)]
class Object
trait Matchable
class Any
Show all
case class Join5Op[A, B, C, D, E](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D], e: RxOps[E]) extends Rx[(A, B, C, D, E)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B, C, D, E)]
trait RxOps[(A, B, C, D, E)]
class Object
trait Matchable
class Any
Show all
case class JoinOp[A, B](a: RxOps[A], b: RxOps[B]) extends Rx[(A, B)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B)]
trait RxOps[(A, B)]
class Object
trait Matchable
class Any
Show all
case class LastOp[A](input: RxOps[A]) extends Rx[Option[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[Option[A]]
trait RxOps[Option[A]]
class Object
trait Matchable
class Any
Show all
case class MapOp[A, B](input: Rx[A], f: A => B) extends UnaryRx[A, B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, B]
trait Rx[B]
trait RxOps[B]
class Object
trait Matchable
class Any
Show all
case class NamedOp[A](input: RxOps[A], name: String) extends UnaryRx[A, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, A]
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class RecoverOp[A, U](input: RxOps[A], f: PartialFunction[Throwable, U]) extends UnaryRx[A, U]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, U]
trait Rx[U]
trait RxOps[U]
class Object
trait Matchable
class Any
Show all
case class RecoverWithOp[A, U](input: RxOps[A], f: PartialFunction[Throwable, RxOps[U]]) extends UnaryRx[A, U]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, U]
trait Rx[U]
trait RxOps[U]
class Object
trait Matchable
class Any
Show all
case class SeqOp[A](lst: LazyF0[Seq[A]]) extends Rx[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class SingleOp[A](v: LazyF0[A]) extends Rx[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class TakeOp[A](input: RxOps[A], n: Long) extends Rx[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class TapOnOp[A](input: RxOps[A], f: PartialFunction[Try[A], Unit]) extends UnaryRx[A, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, A]
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class ThrottleFirstOp[A](input: RxOps[A], interval: Long, unit: TimeUnit) extends UnaryRx[A, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, A]
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class ThrottleLastOp[A](input: RxOps[A], interval: Long, unit: TimeUnit) extends UnaryRx[A, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class UnaryRx[A, A]
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
case class TimerOp(interval: Long, unit: TimeUnit) extends Rx[Long]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[Long]
trait RxOps[Long]
class Object
trait Matchable
class Any
Show all
case class TransformOp[A, B](input: Rx[A], f: Try[A] => B) extends Rx[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[B]
trait RxOps[B]
class Object
trait Matchable
class Any
Show all
case class TransformRxOp[A, B](input: Rx[A], f: Try[A] => RxOps[B]) extends Rx[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[B]
trait RxOps[B]
class Object
trait Matchable
class Any
Show all
case class TransformTryOp[A, B](input: Rx[A], f: Try[A] => Try[B]) extends Rx[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[B]
trait RxOps[B]
class Object
trait Matchable
class Any
Show all
case class TryOp[A](v: LazyF0[Try[A]]) extends Rx[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Show all
abstract class UnaryRx[I, A] extends Rx[A]

Attributes

Supertypes
trait Rx[A]
trait RxOps[A]
class Object
trait Matchable
class Any
Known subtypes
class CacheOp[A]
class FilterOp[A]
class FlatMapOp[A, B]
class MapOp[A, B]
class NamedOp[A]
class RecoverOp[A, U]
class RecoverWithOp[A, U]
class TapOnOp[A]
class ThrottleFirstOp[A]
class ThrottleLastOp[A]
Show all
case class Zip3Op[A, B, C](a: RxOps[A], b: RxOps[B], c: RxOps[C]) extends Rx[(A, B, C)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B, C)]
trait RxOps[(A, B, C)]
class Object
trait Matchable
class Any
Show all
case class Zip4Op[A, B, C, D](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D]) extends Rx[(A, B, C, D)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B, C, D)]
trait RxOps[(A, B, C, D)]
class Object
trait Matchable
class Any
Show all
case class Zip5Op[A, B, C, D, E](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D], e: RxOps[E]) extends Rx[(A, B, C, D, E)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B, C, D, E)]
trait RxOps[(A, B, C, D, E)]
class Object
trait Matchable
class Any
Show all
case class ZipOp[A, B](a: RxOps[A], b: RxOps[B]) extends Rx[(A, B)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Rx[(A, B)]
trait RxOps[(A, B)]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def concat[A, A1 >: A](a: RxOps[A], b: RxOps[A1]): Rx[A1]
def const[A](v: => A): Rx[A]

Provide a constant value by immediately evaluating the given input

Provide a constant value by immediately evaluating the given input

Attributes

def delay(interval: Long, unit: TimeUnit): Rx[Long]

Emits 0 once after the give delay period.

Emits 0 once after the give delay period.

Attributes

def empty[A]: Rx[A]
def exception[A](e: Throwable): Rx[A]
def fromFuture[A](f: Future[A])(implicit ec: ExecutionContext): RxOption[A]

Mapping a Scala Future into Rx. While the future response is unavailable, it emits Rx.none. When the future is complete, Rx.some(A) will be returned.

Mapping a Scala Future into Rx. While the future response is unavailable, it emits Rx.none. When the future is complete, Rx.some(A) will be returned.

The difference from Rx.future is that this method can observe the waiting state of the Future response. For example, while this returns None, you can render an icon that represents loading state.

Attributes

def fromSeq[A](lst: => Seq[A]): Rx[A]

Create a sequence of values from Seq[A]

Create a sequence of values from Seq[A]

Attributes

def fromTry[A](t: Try[A]): Rx[A]
def future[A](f: Future[A])(implicit ec: ExecutionContext): Rx[A]

Mapping a Scala Future into Rx that emits a value when the future is completed.

Mapping a Scala Future into Rx that emits a value when the future is completed.

Attributes

def interval(interval: Long, unit: TimeUnit): Rx[Long]

Periodically trigger an event and report the interval millis. After running Rx with an interval, the cancel method must be called to stop the timer: val c = Rx.interval(...).run { x => ... } c.cancel

Periodically trigger an event and report the interval millis. After running Rx with an interval, the cancel method must be called to stop the timer: val c = Rx.interval(...).run { x => ... } c.cancel

Attributes

def intervalMillis(intervalMillis: Long): Rx[Long]
def join[A, B](a: RxOps[A], b: RxOps[B]): Rx[(A, B)]
def join[A, B, C](a: RxOps[A], b: RxOps[B], c: RxOps[C]): Rx[(A, B, C)]
def join[A, B, C, D](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D]): Rx[(A, B, C, D)]
def join[A, B, C, D, E](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D], e: RxOps[E]): Rx[(A, B, C, D, E)]
def option[A](v: => Option[A]): RxOption[A]
def optionVariable[A](v: Option[A]): RxOptionVar[A]
def sequence[A](values: A*): Rx[A]

Create a sequence of values

Create a sequence of values

Attributes

def single[A](v: => A): Rx[A]

Create a lazily evaluated single value

Create a lazily evaluated single value

Attributes

def some[A](v: => A): RxOption[A]
def timer(interval: Long, unit: TimeUnit): Rx[Long]

Emits 0 once after the give delay period.

Emits 0 once after the give delay period.

Attributes

def variable[A](v: A): RxVar[A]
def zip[A, B](a: RxOps[A], b: RxOps[B]): Rx[(A, B)]
def zip[A, B, C](a: RxOps[A], b: RxOps[B], c: RxOps[C]): Rx[(A, B, C)]
def zip[A, B, C, D](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D]): Rx[(A, B, C, D)]
def zip[A, B, C, D, E](a: RxOps[A], b: RxOps[B], c: RxOps[C], d: RxOps[D], e: RxOps[E]): Rx[(A, B, C, D, E)]

Deprecated methods

def apply[A](v: A): RxVar[A]

Attributes

Deprecated
[Since version 20.9.2] Use Rx.variable instead

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods

Concrete fields

val none: RxOption[Nothing]