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

Method callback

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

Source from the content-addressed store, hash-verified

59 this.#page.evaluateHandle(timeout => {
60 let timeoutId: ReturnType<typeof setTimeout>;
61 function callback(): void {
62 clearTimeout(timeoutId);
63 timeoutId = setTimeout(() => {
64 domObserver.resolver.resolve();
65 domObserver.observer.disconnect();
66 }, timeout);
67 }
68 const domObserver = {
69 resolver: Promise.withResolvers<void>(),
70 observer: new MutationObserver(callback),

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected