MCPcopy
hub / github.com/qq15725/modern-screenshot / onResolve

Function onResolve

src/utils.ts:197–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 let removeEventListeners: null | (() => void) = null
196
197 function onResolve(): void {
198 resolve(node)
199 timer && clearTimeout(timer)
200 removeEventListeners?.()
201 }
202
203 if (timeout) {
204 timer = setTimeout(onResolve, timeout)

Callers 3

loadMediaFunction · 0.85
onErrorFunction · 0.85
onLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…