Observer

com.raquo.airstream.core.Observer
See theObserver companion trait
object Observer

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Observer.type

Members list

Value members

Concrete methods

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

Value parameters

onNext

Note: guarded against exceptions

Attributes

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

Combine several observers into one.

Combine several observers into one.

Attributes

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

Attributes

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

Value parameters

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.

Attributes

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

Value parameters

onNext

Note: guarded against exceptions

Attributes

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

Value parameters

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.

Attributes

Implicits

Implicits

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

Provides debug* methods for observers

Provides debug* methods for observers

Attributes