RxOptionVar
RxVar implementation for Option[A] type values
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Propagate an error to the subscribers
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
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
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
Await the completion of the first Rx result. This method is available only in Scala JVM.
Await the completion of the first Rx result. This method is available only in Scala JVM.
Note: Generally speaking, blocking operations should be avoided in reactive programming. Use this method only for testing purpose. Both airframe-http and AirSpec supports evaluating Rx[X] result (async) in a non-blocking way.
Attributes
- Returns
-
the result
- Inherited from:
- RxOps
Attributes
- Inherited from:
- RxOption
Update the variable and force notification to subscribers
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
Recover from a known error and emit a replacement value
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:
- RxOps
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:
- RxOps
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:
- RxOps
Attributes
- Inherited from:
- RxOps
Applies f
to the value for having a side effect, and return the original value.
Applies f
to the value for having a side effect, and return the original value.
Applies f
to the value for having a side effect, and return the original value.
This method is useful for debugging Rx chains. For example:
rx.tapOn {
case Success(v) => debug(s"received ${v}")
case Failure(e) => error(s"request failed", e)
}
Value parameters
- f
-
partial function for the side effect
Attributes
- Returns
-
the original Rx event
- Inherited from:
- RxOps
Applies f
to the error if it happens, and return the original value.
Applies f
to the error if it happens, and return the original value.
This method is useful for logging the error.
Value parameters
- f
-
side-effect function used when observing an error
Attributes
- Returns
-
the original Rx event
- Inherited from:
- RxOps
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
An alias for filter
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption