ChannelSource

kreuzberg.EventSource.ChannelSource
See theChannelSource companion object
case class ChannelSource[E](channel: WeakReference[Channel[E]]) extends EventSource[E]

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EventSource[E]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def collect[F](f: PartialFunction[E, F]): EventSource[F]

Collect values.

Collect values.

Attributes

Inherited from:
EventSource
def filter(f: E => Boolean): EventSource[E]

Filters the value

Filters the value

Attributes

Inherited from:
EventSource
def handle[T >: E](f: T => Unit): EventBinding[T]

Attach a handler

Attach a handler

Attributes

Inherited from:
EventSource
def handleAny(f: => Unit): EventBinding[Any]

Attach a handler, discarding the value.

Attach a handler, discarding the value.

Attributes

Inherited from:
EventSource
def hook(f: E => Unit): EventSource[E]

Just hook in some code.

Just hook in some code.

Attributes

Inherited from:
EventSource
def map[F](f: E => F): EventSource[F]

Map the value

Map the value

Attributes

Inherited from:
EventSource
def or[T >: E](source: EventSource[T]): EventSource[T]

Combine with some other event source.

Combine with some other event source.

Attributes

Inherited from:
EventSource
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product