EventSource

kreuzberg.EventSource
See theEventSource companion object
sealed trait EventSource[+E]

A Source of an EventBinding.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ChannelSource[E]
class Js
class OrSource[E]
class Timer
class Transformer[E, F]

Members list

Value members

Concrete methods

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

Collect values.

Collect values.

Attributes

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

Filters the value

Filters the value

Attributes

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

Attach a handler

Attach a handler

Attributes

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

Attach a handler, discarding the value.

Attach a handler, discarding the value.

Attributes

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

Just hook in some code.

Just hook in some code.

Attributes

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

Map the value

Map the value

Attributes

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

Combine with some other event source.

Combine with some other event source.

Attributes