MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / on

Method on

tooling/scripts/perf-desktop-runtime.mjs:343–347  ·  view source on GitHub ↗
(method, listener)

Source from the content-addressed store, hash-verified

341 }
342
343 on(method, listener) {
344 const listeners = this.listeners.get(method) ?? []
345 listeners.push(listener)
346 this.listeners.set(method, listeners)
347 }
348
349 waitFor(method, timeoutMs = 10000) {
350 return new Promise((resolvePromise, rejectPromise) => {

Callers 7

waitForMethod · 0.95
runFunction · 0.45
getFreePortFunction · 0.45
httpGetJsonFunction · 0.45
startDesktopRuntimeFunction · 0.45
connectMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected