Optionaloptions: EventBusOptionsTotal events emitted (including evicted).
Current buffer size.
Number of active subscriptions (for observability/testing).
Subscribe to events matching filter. Returns unsubscribe function.
Query recent events (bounded buffer).
Optionallimit: number
In-memory event bus with bounded circular buffer.
Events are stored in a circular buffer. When the buffer is full, the oldest events are evicted. Subscribers receive events that match their filter. Handler errors are caught and logged.