EventBus

com.raquo.airstream.eventbus.EventBus
See theEventBus companion class
object EventBus

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
EventBus.type

Members list

Type members

Classlikes

final implicit class EventBusTryTuple[A](val tuple: (EventBus[A], Try[A])) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class EventBusTuple[A](val tuple: (EventBus[A], A)) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def apply[A](): EventBus[A]
def emit(values: EventBusTuple[_]*): Unit

Emit events into several EventBus-es at once (in the same transaction) Example usage: emitTry(eventBus1 -> value1, eventBus2 -> value2)

Emit events into several EventBus-es at once (in the same transaction) Example usage: emitTry(eventBus1 -> value1, eventBus2 -> value2)

Attributes

def emitTry(values: EventBusTryTuple[_]*): Unit

Emit events into several WriteBus-es at once (in the same transaction) Example usage: emitTry(eventBus1 -> Success(value1), eventBus2 -> Failure(error2))

Emit events into several WriteBus-es at once (in the same transaction) Example usage: emitTry(eventBus1 -> Success(value1), eventBus2 -> Failure(error2))

Attributes

Implicits

Implicits

final implicit def EventBusTryTuple[A](tuple: (EventBus[A], Try[A])): EventBusTryTuple[A]
final implicit def EventBusTuple[A](tuple: (EventBus[A], A)): EventBusTuple[A]