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

Method timeout

src/utils/WaitForHelper.ts:102–110  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

100 }
101
102 timeout(time: number): Promise<void> {
103 return new Promise<void>(res => {
104 const id = setTimeout(res, time);
105 this.#abortController.signal.addEventListener('abort', () => {
106 res();
107 clearTimeout(id);
108 });
109 });
110 }
111
112 async waitForEventsAfterAction(
113 action: () => Promise<unknown>,

Callers 4

waitForStableDomMethod · 0.95
createStackTraceFunction · 0.80
browser.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected