UNPKG

arvo-event-handler

Version:

Type-safe event handler system with versioning, telemetry, and contract validation for distributed Arvo event-driven architectures, featuring routing and multi-handler support.

7 lines (6 loc) 281 B
import type { ArvoEvent } from 'arvo-core'; export type EventBusListener = (event: ArvoEvent, publish: (event: ArvoEvent) => Promise<void>) => Promise<void>; export interface EventBusOptions { maxQueueSize: number; errorHandler: (error: Error, event: ArvoEvent) => void; }