Class

outwatch

ObserverSink

Related Doc: package outwatch

Permalink

final case class ObserverSink[-T](observer: Observer[T]) extends AnyVal with Sink[T] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Sink[T], AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObserverSink
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Sink
  7. AnyVal
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObserverSink(observer: Observer[T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. def <--(observable: Observable[T]): AnonymousSubscription

    Permalink

    Use this function with caution! This function pipes all of the Observable's emissions into this Sink Using this method is inherently impure and can cause memory leaks, if subscription isn't handled correctly.

    Use this function with caution! This function pipes all of the Observable's emissions into this Sink Using this method is inherently impure and can cause memory leaks, if subscription isn't handled correctly. For more guaranteed safety, use Sink.redirect() instead.

    Definition Classes
    Sink
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. val observer: Observer[T]

    Permalink
    Definition Classes
    ObserverSinkSink
  9. def redirect[R](projection: (Observable[R]) ⇒ Observable[T]): Sink[R]

    Permalink

    Creates a new sink.

    Creates a new sink. That sink will transform the values it receives and then forward them along to this sink. The transformation is described by a function from an Observable to another Observable, i.e. an operator on Observable. This function applies the operator to the newly created sink and forwards the value to the original sink.

    R

    the type of the resulting sink

    projection

    the operator to use

    returns

    the resulting sink, that will forward the values

    Definition Classes
    Sink
  10. def redirectMap[R](projection: (R) ⇒ T): Sink[R]

    Permalink

    Creates a new sink.

    Creates a new sink. That sink will transform each value it receives and then forward it along to the this sink. The transformation is a simple map from one type to another, i.e. a 'map'. This is equivalent to contramap on a Contravariant functor, since Sinks are contravariant in nature.

    R

    the type of the resulting sink

    projection

    the mapping to perform before forwarding

    returns

    the resulting sink, that will forward the values

    Definition Classes
    Sink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Sink[T]

Inherited from AnyVal

Inherited from Any

Ungrouped