EventBus

object EventBus
Companion:
class
class Object
trait Matchable
class Any

Type members

Types

type EventBusTryTuple[A] = (EventBus[A], Try[A])
type EventBusTuple[A] = (EventBus[A], A)

Value members

Concrete methods

def apply[A](): EventBus[A]
def emit[A](values: (A)*): 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)

def emitTry[A](values: (A)*): 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))