UNPKG

arvo-event-handler

Version:

A complete set of orthogonal event handler and orchestration primitives for Arvo based applications, featuring declarative state machines (XState), imperative resumables for agentic workflows, contract-based routing, OpenTelemetry observability, and in-me

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; }