Timer

kreuzberg.EventSource.Timer
case class Timer(duration: FiniteDuration, periodic: Boolean) extends EventSource[Unit]

A Timer.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EventSource[Unit]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

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

Collect values.

Collect values.

Attributes

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

Filters the value

Filters the value

Attributes

Inherited from:
EventSource
def handle[T >: Unit](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: Unit => Unit): EventSource[Unit]

Just hook in some code.

Just hook in some code.

Attributes

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

Map the value

Map the value

Attributes

Inherited from:
EventSource
def or[T >: Unit](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