Event Emitter
Keep a map from event names to ordered listener lists; subscribe adds, unsubscribe removes, and emit calls each listener in order.
Keep a map from event names to ordered listener lists; subscribe adds, unsubscribe removes, and emit calls each listener in order.