property EventsPluginOptions.async

Dispatch policy for event handlers.

  • false (default): publish/publishBatch await all handlers before resolving (deterministic ordering).
  • true: fire-and-forget; publish resolves immediately, handler errors are routed to errorHandler asynchronously.

Type

boolean

Usage

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