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

Function stopAllVideoCaptureSessions

src/utils/video_capture.ts:271–291  ·  view source on GitHub ↗
(timeoutMs = 1000)

Source from the content-addressed store, hash-verified

269}
270
271export async function stopAllVideoCaptureSessions(timeoutMs = 1000): Promise<{
272 stoppedSessionCount: number;
273 errorCount: number;
274 errors: string[];
275}> {
276 const simulatorIds = Array.from(sessions.keys());
277 const errors: string[] = [];
278
279 for (const simulatorUuid of simulatorIds) {
280 const result = await stopSession(simulatorUuid, { timeoutMs });
281 if ('error' in result) {
282 errors.push(`${simulatorUuid}: ${result.error}`);
283 }
284 }
285
286 return {
287 stoppedSessionCount: simulatorIds.length - errors.length,
288 errorCount: errors.length,
289 errors,
290 };
291}

Callers 1

runMcpShutdownFunction · 0.90

Calls 2

stopSessionFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected