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

Method timeout

src/WaitForHelper.ts:121–129  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

119 }
120
121 timeout(time: number): Promise<void> {
122 return new Promise<void>(res => {
123 const id = setTimeout(res, time);
124 this.#abortController.signal.addEventListener('abort', () => {
125 res();
126 clearTimeout(id);
127 });
128 });
129 }
130
131 async waitForEventsAfterAction(
132 action: () => Promise<unknown>,

Callers 3

waitForStableDomMethod · 0.95
createStackTraceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected