Trait/Object

outwatch

Sink

Related Docs: object Sink | package outwatch

Permalink

sealed trait Sink[-T] extends Any

Linear Supertypes
Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sink
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any

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

  4. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  6. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  7. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  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

  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

  11. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from Any

Ungrouped