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

Method callback

src/WaitForHelper.ts:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 const stableDomObserver = await this.#page.evaluateHandle(timeout => {
42 let timeoutId: ReturnType<typeof setTimeout>;
43 function callback() {
44 clearTimeout(timeoutId);
45 timeoutId = setTimeout(() => {
46 domObserver.resolver.resolve();
47 domObserver.observer.disconnect();
48 }, timeout);
49 }
50 const domObserver = {
51 resolver: Promise.withResolvers<void>(),
52 observer: new MutationObserver(callback),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected