RxOption
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Concrete methods
Inherited methods
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