EventTransformationDsl

kreuzberg.EventTransformationDsl

Methods which chain event sources.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EventSource[E]
object Assembled
class ChannelSource[E]
class Js[E]
class OrSource[E]
class PostTransformer[E, O]
class Timer
trait EventTransformer[I, O]
class AddEffect[I, E]
class AddState[I, S]
class And[I]
class Chained[I, X, O]
class Collect[I, O]
class Empty[I]
class Map[I, O]
class Tapped[I]
class TryUnpack1[E]
class TryUnpack2[I, E]
Show all

Members list

Type members

Types

Event Transformer applied.

Event Transformer applied.

Attributes

Value members

Abstract methods

def withTransformer[Q](transformer: EventTransformer[E, Q]): WithTransformer[Q]

Concrete methods

inline def collect[F](f: PartialFunction[E, F]): WithTransformer[F]
inline def effect[F >: E, R](op: F => Effect[R]): WithTransformer[(F, Try[R])]

Add some effect.

Add some effect.

Attributes

inline def filter[F >: E](f: F => Boolean): WithTransformer[F]
inline def future[F >: E, R](op: F => ExecutionContext ?=> Future[R]): WithTransformer[(F, Try[R])]

Add some future.

Add some future.

Attributes

inline def handleErrors[F](sink: EventSink[Throwable])(implicit ev: E => Try[F]): WithTransformer[F]

If e is a Try[T], handle errors using another sink.

If e is a Try[T], handle errors using another sink.

Attributes

inline def map[F](f: E => F): WithTransformer[F]
inline def mapUnit: WithTransformer[Unit]

Throw away any data.

Throw away any data.

Attributes

inline def recoverWith[F, R](f: Throwable => F)(implicit ev: E => Try[F]): WithTransformer[F]

Recover a Try-Event source into something useful.

Recover a Try-Event source into something useful.

Attributes

inline def recoverWith2[A, F, R](f: Throwable => F)(implicit ev: E => (A, Try[F])): WithTransformer[(A, F)]

Recovers the most right part of a pair.

Recovers the most right part of a pair.

Attributes

inline def second[F >: E, A, B](using ev: F => (A, B)): WithTransformer[B]

Take the second value of a Pair.

Take the second value of a Pair.

Attributes

inline def state[F >: E, S](from: RuntimeState[S]): WithTransformer[(F, S)]

Add some runtime state.

Add some runtime state.

Attributes

inline def tap[T >: E](fn: T => Unit): WithTransformer[T]

Execute code while traversing the source.

Execute code while traversing the source.

Attributes

inline def withEffect[F >: E, R](op: F => Effect[R]): WithTransformer[Try[R]]

Replace with effect data.

Replace with effect data.

Attributes

inline def withFuture[F >: E, R](op: F => ExecutionContext ?=> Future[R]): WithTransformer[Try[R]]

Replace with future result.

Replace with future result.

Attributes

inline def withState[S](from: RuntimeState[S]): WithTransformer[S]

Replace with runtime state.

Replace with runtime state.

Attributes