RxOptionOp
Attributes
- Graph
-
- Supertypes
Members list
Value members
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
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- RxOption
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
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