MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / createTimeoutPromise

Function createTimeoutPromise

src/utils/video_capture.ts:39–44  ·  view source on GitHub ↗
(timeoutMs: number)

Source from the content-addressed store, hash-verified

37 | { stopped: false; error: string };
38
39function createTimeoutPromise(timeoutMs: number): Promise<'timed_out'> {
40 return new Promise((resolve) => {
41 const timer = setTimeout(() => resolve('timed_out'), timeoutMs);
42 timer.unref?.();
43 });
44}
45
46async function waitForChildToStop(session: Session, timeoutMs: number): Promise<void> {
47 const child = session.process as ChildProcess | undefined;

Callers 1

waitForChildToStopFunction · 0.70

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected