Observer

object Observer
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](onNext: A => Unit): Observer[A]
Value Params
onNext

Note: guarded against exceptions

def combine[A](observers: Observer[A]*): Observer[A]

Combine several observers into one.

Combine several observers into one.

def empty[A]: Observer[A]

An observer that does nothing. Use it to ensure that an Observable is started

An observer that does nothing. Use it to ensure that an Observable is started

Used by SignalView and EventStreamView

def fromTry[A](onTry: PartialFunction[Try[A], Unit], handleObserverErrors: Boolean): Observer[A]
Value Params
handleObserverErrors

If true, we will call this observer's onError(ObserverError(err)) if this observer throws while processing an incoming event, giving this observer one last chance to process its own error.

onTry

Note: guarded against exceptions. See docs for details.

def ignoreErrors[A](onNext: A => Unit): Observer[A]
Value Params
onNext

Note: guarded against exceptions

def withRecover[A](onNext: A => Unit, onError: PartialFunction[Throwable, Unit], handleObserverErrors: Boolean): Observer[A]
Value Params
handleObserverErrors

If true, we will call this observer's onError(ObserverError(err)) if this observer throws while processing an incoming event, giving this observer one last chance to process its own error.

onError

Note: guarded against exceptions. See docs for details.

onNext

Note: guarded against exceptions. See docs for details.

Implicits

Implicits

implicit def toDebuggableObserver[A](observer: Observer[A]): DebuggableObserver[A]

Provides debug* methods for observers

Provides debug* methods for observers