parallel allows multiple handlers for the same event to run at the same time.
Companion runnable example:
Lifecycle impact
- Event starts processing.
- All applicable handlers are scheduled concurrently.
- Event completion waits based on completion mode (
allorfirst). - Per-handler timeout/error behavior remains independent per handler.
Execution order example
- Python
- TypeScript
- Go
- Rust
Notes
- Best for independent I/O-bound handlers where overlap reduces total latency.
- If handlers mutate shared resources, add explicit synchronization.