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

Method timeout

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

Source from the content-addressed store, hash-verified

132 }
133
134 timeout(time: number): Promise<void> {
135 return new Promise<void>(res => {
136 const id = setTimeout(res, time);
137 this.#abortController.signal.addEventListener('abort', () => {
138 res();
139 clearTimeout(id);
140 });
141 });
142 }
143
144 async waitForEventsAfterAction(
145 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