rx.lang

scala

package scala

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scala
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Notification[+T] extends AnyRef

    Emitted by Observables returned by rx.lang.scala.Observable.materialize.

  2. trait Observable[+T] extends AnyRef

    The Observable interface that implements the Reactive Pattern.

  3. implicit final class ObservableExtensions[T] extends AnyVal

    Placeholder for extension methods into Observable[T] from other types

  4. trait Observer[-T] extends AnyRef

    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.

  5. trait Producer extends AnyRef

  6. trait Scheduler extends AnyRef

    Represents an object that schedules units of work.

  7. trait Subject[T] extends Observable[T] with Observer[T]

    A Subject is an Observable and an Observer at the same time.

  8. trait Subscriber[-T] extends Observer[T] with Subscription

  9. sealed trait SubscriberAdapter[T] extends rx.Subscriber[T]

  10. trait Subscription extends AnyRef

    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.

  11. trait Worker extends Subscription

Value Members

  1. object ImplicitFunctionConversions

    These function conversions convert between Scala functions and Rx Funcs and Actions.

    These function conversions convert between Scala functions and Rx Funcs and Actions. 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 Funcs and Actions. This object only contains conversions between functions. For conversions between types, use rx.lang.scala.JavaConversions.

  2. object 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.

  3. object Notification

    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)
    })
  4. object Observable

    Provides various ways to construct new Observables.

  5. object Observer extends ObserverFactoryMethods[Observer]

  6. object Producer

  7. object Subject

  8. object Subscriber extends ObserverFactoryMethods[Subscriber]

  9. object Subscription

  10. object Worker

  11. package 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.

  12. package schedulers

  13. package subjects

    Subjects are Observers and Observables at the same time.

  14. package subscriptions

Inherited from AnyRef

Inherited from Any

Ungrouped