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

Method on

tooling/scripts/perf-web-runtime.mjs:372–376  ·  view source on GitHub ↗
(method, listener)

Source from the content-addressed store, hash-verified

370 }
371
372 on(method, listener) {
373 const listeners = this.listeners.get(method) ?? []
374 listeners.push(listener)
375 this.listeners.set(method, listeners)
376 }
377
378 waitFor(method, timeoutMs = 10000) {
379 return new Promise((resolvePromise, rejectPromise) => {

Callers 8

waitForMethod · 0.95
runFunction · 0.45
getFreePortFunction · 0.45
httpGetJsonFunction · 0.45
startGoServerFunction · 0.45
startChromeFunction · 0.45
connectMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected