trait RxOps[+A] extends AnyRef
A common interface for Rx and RxOption operators
- Self Type
- RxOps[A]
- Alphabetic
- By Inheritance
- RxOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
await: A
Await the completion of the first Rx result.
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.
- returns
the result
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
recover[U](f: PartialFunction[Throwable, U]): Rx[U]
Recover from a known error and emit a replacement value
-
def
recoverWith[A](f: PartialFunction[Throwable, RxOps[A]]): Rx[A]
Recover from a known error and emit replacement values from a given Rx
-
def
run[U](effect: (A) ⇒ U = Rx.doNothing): Cancelable
Evaluate this Rx[A] and apply the given effect function.
Evaluate this Rx[A] and apply the given effect function. Once OnError(e) or OnCompletion is observed, it will stop the evaluation.
-
def
runContinuously[U](effect: (A) ⇒ U = Rx.doNothing): Cancelable
Keep evaluating Rx[A] even if OnError(e) or OnCompletion is reported.
Keep evaluating Rx[A] even if OnError(e) or OnCompletion is reported. This is useful for keep processing streams.
- def subscribe[U](subscriber: (A) ⇒ U = Rx.doNothing): Cancelable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tap(f: (A) ⇒ Unit): Rx[A]
Applies
fto the value for having a side effect, and return the original value.Applies
fto the value for having a side effect, and return the original value.The difference from tapOn is that this method will not receive an input failure.
- f
side-effect function used when observing a value
- returns
the original Rx event
-
def
tapOn(f: PartialFunction[Try[A], Unit]): Rx[A]
Applies
fto the value for having a side effect, and return the original value.Applies
fto 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) }- f
partial function for the side effect
- returns
the original Rx event
-
def
tapOnFailure(f: (Throwable) ⇒ Unit): Rx[A]
Applies
fto the error if it happens, and return the original value.Applies
fto the error if it happens, and return the original value.This method is useful for logging the error.
- f
side-effect function used when observing an error
- returns
the original Rx event
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated