Observer

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

Companion
object
trait Serializable
class Any
trait Sync[A]
trait Sync[A]
class ConcurrentSubject[I, O]
trait Subscriber[A]
class Subject[I, O]
class AsyncSubject[A]
class ReplaySubject[A]

Value members

Abstract methods

def onComplete(): Unit
def onError(ex: Throwable): Unit
def onNext(elem: A): Future[Ack]