MCPcopy
hub / github.com/lutzroeder/netron / emit

Method emit

source/python.js:22426–22432  ·  view source on GitHub ↗
(event, ...args)

Source from the content-addressed store, hash-verified

22424 }
22425
22426 emit(event, ...args) {
22427 if (this._events.has(event)) {
22428 for (const callback of this._events.get(event)) {
22429 callback(this, ...args);
22430 }
22431 }
22432 }
22433
22434 register(name, value) {
22435 if (!this._registry.has(name)) {

Callers 2

deserialize_nodeMethod · 0.45
resolveMethod · 0.45

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected