MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / callback

Method callback

src/utils/WaitForHelper.ts:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 this.#page.evaluateHandle(timeout => {
50 let timeoutId: ReturnType<typeof setTimeout>;
51 function callback() {
52 clearTimeout(timeoutId);
53 timeoutId = setTimeout(() => {
54 domObserver.resolver.resolve();
55 domObserver.observer.disconnect();
56 }, timeout);
57 }
58 const domObserver = {
59 resolver: Promise.withResolvers<void>(),
60 observer: new MutationObserver(callback),

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected