Packages

trait Observer[-A] extends Serializable

The Observer from the Rx pattern is the trio of callbacks that get subscribed to an Observable for receiving events.

The events received must follow the Rx grammar, which is: onNext * (onComplete | onError)?

That means an Observer can receive zero or multiple events, the stream ending either in one or zero onComplete or onError (just one, not both), and after onComplete or onError, a well behaved Observable implementation shouldn't send any more onNext events.

Source
Observer.scala
Linear Supertypes
Serializable, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observer
  2. Serializable
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def onComplete(): Unit
  2. abstract def onError(ex: Throwable): Unit
  3. abstract def onNext(elem: A): Future[Ack]