Emitted by Observables returned by rx.lang.scala.Observable.materialize.
The Observable interface that implements the Reactive Pattern.
Placeholder for extension methods into Observable[T] from other types
Provides a mechanism for receiving push-based notifications.
Provides a mechanism for receiving push-based notifications.
After an Observer calls an rx.lang.scala.Observable's subscribe
method, the Observable
calls the Observer's onNext
method to provide notifications. A well-behaved Observable will
call an Observer's onCompleted
method exactly once or the Observer's onError
method exactly once.
Represents an object that schedules units of work.
A Subject is an Observable and an Observer at the same time.
Subscriptions are returned from all Observable.subscribe
methods to allow unsubscribing.
Subscriptions are returned from all Observable.subscribe
methods to allow unsubscribing.
This interface is the equivalent of IDisposable
in the .NET Rx implementation.
These function conversions convert between Scala functions and Rx Func
s and Action
s.
These function conversions convert between Scala functions and Rx Func
s and Action
s.
Most RxScala users won't need them, but they might be useful if one wants to use
the rx.Observable
directly instead of using rx.lang.scala.Observable
or if one wants
to use a Java library taking/returning Func
s and Action
s.
This object only contains conversions between functions. For conversions between types,
use rx.lang.scala.JavaConversions.
These functions convert between RxScala types RxJava types.
These functions convert between RxScala types RxJava types. Pure Scala projects won't need them, but they will be useful for polyglot projects. This object only contains conversions between types. For conversions between functions, use rx.lang.scala.ImplicitFunctionConversions.
Provides pattern matching support and constructors for Notifications.
Provides pattern matching support and constructors for Notifications.
Example:
import Notification._ Observable(1, 2, 3).materialize.subscribe(n => n match { case OnNext(v) => println("Got value " + v) case OnCompleted() => println("Completed") case OnError(err) => println("Error: " + err.getMessage) })
Provides various ways to construct new Observables.
Contains special Observables.
Contains special Observables.
In Scala, this package only contains rx.lang.scala.observables.BlockingObservable.
In the corresponding Java package rx.observables
, there is also a
GroupedObservable
and a ConnectableObservable
, but these are not needed
in Scala, because we use a pair (key, observable)
instead of GroupedObservable
and a pair (startFunction, observable)
instead of ConnectableObservable
.
Subjects are Observers and Observables at the same time.
This package contains all classes that RxScala users need.
It basically mirrors the structure of package
rx
, but some changes were made to make it more Scala-idiomatic.