The addListener method is used for listening to a BaseEvent.
The same listener can only be added once for a specific event. Adding the same listener multiple times will have no effect and nothing will occur.
The dispatch method is used for dispatching a BaseEvent.
The listenOnce method is used for listening to a BaseEvent once.
The removeListener method is used for stop listening to a BaseEvent.
Removing unadded listener will have no effect and nothing will occur.
The subscribe method is used for listening to a BaseEvent and it returns a cleanup function that removes listener when called.
The same listener can only be added once for a specific event. Adding the same listener multiple times will have no effect and nothing will occur.
The subscribeOnce method is used for listening to a BaseEvent once and it returns a cleanup function that removes listener when called.
The same listener can only be added once for a specific event. Adding the same listener multiple times will have no effect and nothing will occur.
EventBusclass can be derived from anyIEventBusAdapter.IMPORT_PATH:
"@daiso-tech/core/event-bus"