A simple in-memory event bus.
Creates an event bus with options.
Optional
Number of cached last events.
Logger, default is the console.
Return the cached events.
Publish an event to all handlers.
Subscribe a handler to all events.
Unsubscribe function.
A simple in-memory event bus.