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

Function flushAndCloseSentry

src/utils/sentry.ts:359–369  ·  view source on GitHub ↗
(timeoutMs = 2000)

Source from the content-addressed store, hash-verified

357}
358
359export async function flushAndCloseSentry(timeoutMs = 2000): Promise<void> {
360 if (!initialized || isSentryDisabled() || isTestEnv()) {
361 return;
362 }
363
364 try {
365 await Sentry.close(timeoutMs);
366 } catch {
367 // Best effort during shutdown.
368 }
369}
370
371export type FlushSentryOutcome = 'skipped' | 'flushed' | 'timed_out' | 'failed';
372

Callers 5

mainFunction · 0.90
finishShutdownFunction · 0.90
handleStartupServerErrorFunction · 0.90
daemon.tsFile · 0.90
cli.tsFile · 0.90

Calls 3

isSentryDisabledFunction · 0.85
isTestEnvFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected