UNPKG

arvo-xstate

Version:

This package allows you to use xstate Actors and State Machines to act as orchestrators in an Arvo Event Driven System

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