RxVarOps

wvlet.airframe.rx.RxVarOps
trait RxVarOps[A]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RxOptionVar[A]
class RxVar[A]

Members list

Concise view

Value members

Abstract methods

def foreach[U](f: A => U): Cancelable
def foreachEvent[U](effect: RxEvent => U): Cancelable
def get: A
def setException(e: Throwable): Unit

Propagate an error to the subscribers

Propagate an error to the subscribers

Attributes

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

def update(updater: A => 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

Concrete methods

def :=(newValue: A): Unit
def forceSet(newValue: A): Unit
def forceUpdate(updater: A => A): Unit

Update the variable and force notification to subscribers

Update the variable and force notification to subscribers

Attributes

def set(newValue: A): Unit