Skip to main content
parallel allows multiple handlers for the same event to run at the same time. Companion runnable example:

Lifecycle impact

  1. Event starts processing.
  2. All applicable handlers are scheduled concurrently.
  3. Event completion waits based on completion mode (all or first).
  4. Per-handler timeout/error behavior remains independent per handler.

Execution order example

Notes

  • Best for independent I/O-bound handlers where overlap reduces total latency.
  • If handlers mutate shared resources, add explicit synchronization.