trait Observer[-A] extends Sink[A] with Named

Linear Supertypes
Named, Sink[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observer
  2. Named
  3. Sink
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def onError(err: Throwable): Unit

    Note: must not throw!

  2. abstract def onNext(nextValue: A): Unit

    Note: must not throw!

  3. abstract def onTry(nextValue: Try[A]): Unit

    Note: must not throw!

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def contracollect[B](pf: PartialFunction[B, A]): Observer[B]

    Like contramap but with collect semantics: not calling the original observer when pf is not defined

    Like contramap but with collect semantics: not calling the original observer when pf is not defined

    pf

    Note: guarded against exceptions

  7. def contramap[B](project: (B) => A): Observer[B]

    Creates another Observer such that calling its onNext will call this observer's onNext with the value processed by the project function.

    Creates another Observer such that calling its onNext will call this observer's onNext with the value processed by the project function.

    This is useful when you need to pass down an Observer[A] to a child component which should not know anything about the type A, but both child and parent know about type B, and the parent knows how to translate B into A.

    project

    Note: guarded against exceptions

  8. def contramapOpt[B](project: (B) => Option[A]): Observer[B]

    Like contramap, but original observer only fires if project returns Some(value)

    Like contramap, but original observer only fires if project returns Some(value)

    So, similar to contracollect but optimized for APIs like NonEmptyList.fromList that return an Option.

    project

    Note: guarded against exceptions

  9. def contramapSome[V](implicit evidence: <:<[Option[V], A]): Observer[V]

    Available only on Observers of Option, this is a shortcut for contramap[B](Some(_))

  10. def contramapTry[B](project: (Try[B]) => Try[A]): Observer[B]

    project

    must not throw!

  11. def defaultDisplayName: String

    This is the method that subclasses override to preserve the user's ability to set custom display names.

    This is the method that subclasses override to preserve the user's ability to set custom display names.

    Attributes
    protected
    Definition Classes
    Named
  12. def delay(ms: Int): Observer[A]

    Creates another Observer such that calling it calls the original observer after the specified delay.

  13. final def displayName: String
    Definition Classes
    Named
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def filter[B <: A](passes: (B) => Boolean): Observer[B]

    Creates another Observer such that calling its onNext will call this observer's onNext with the same value, but only if it passes the test.

    Creates another Observer such that calling its onNext will call this observer's onNext with the same value, but only if it passes the test.

    passes

    Note: guarded against exceptions

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val maybeDisplayName: UndefOr[String]

    This name should identify the instance (observable or observer) uniquely enough for your purposes.

    This name should identify the instance (observable or observer) uniquely enough for your purposes. You can read / write it to simplify debugging. Airstream uses this in debugLog* methods. In the future, we will expand on this. #TODO[Debug] We don't use this to its full potential yet.

    Attributes
    protected[this]
    Definition Classes
    Named
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. def setDisplayName(name: String): Observer.this.type

    Set the display name for this instance (observable or observer).

    Set the display name for this instance (observable or observer). - This method modifies the instance and returns this. It does not create a new instance. - New name you set will override the previous name, if any. This might change in the future. For the sake of sanity, don't call this more than once for the same instance. - If display name is set, toString will output it instead of the standard type@hashcode string

    Definition Classes
    Named
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. lazy val toJsFn1: Function1[A, Unit]
  27. def toObserver: Observer[A]
    Definition Classes
    ObserverSink
  28. final def toString(): String

    Override defaultDisplayName instead of this, if you need to.

    Override defaultDisplayName instead of this, if you need to.

    Definition Classes
    Named → AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Named

Inherited from Sink[A]

Inherited from AnyRef

Inherited from Any

Ungrouped