method InMemoryEventBus.prototype.publishBatch
InMemoryEventBus.prototype.publishBatch(events: IDomainEvent[]): Promise<void>

Publishes multiple events, each to its own subscribers.

Parameters

events: IDomainEvent[]

The events to publish, in array order

Return Type

Promise<void>

Usage

import { InMemoryEventBus } from "events-plugin/src/index.ts";