MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / createModuleEventBus

Function createModuleEventBus

packages/editor-core/src/event-bus.ts:103–109  ·  view source on GitHub ↗
(moduleName: string, maxListeners?: number)

Source from the content-addressed store, hash-verified

101}
102
103export const createModuleEventBus = (moduleName: string, maxListeners?: number): IEventBus => {
104 const emitter = new EventEmitter();
105 if (maxListeners) {
106 emitter.setMaxListeners(maxListeners);
107 }
108 return new EventBus(emitter, moduleName);
109};

Callers 15

GlobalLocaleClass · 0.90
TipHandlerClass · 0.90
WorkspaceClass · 0.85
EditorWindowClass · 0.85
ComponentMetaClass · 0.85
ResourceConsumerClass · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
ProjectClass · 0.85
HistoryClass · 0.85
constructorMethod · 0.85

Calls 1

setMaxListenersMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…