MCPcopy Create free account
hub / github.com/getsentry/sentry-react-native / close

Function close

packages/core/src/js/sdk.tsx:276–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 * Closes the SDK, stops sending events.
275 */
276export async function close(): Promise<void> {
277 try {
278 const client = getClient();
279
280 if (client) {
281 await client.close();
282 }
283 } catch (e) {
284 debug.error('Failed to close the SDK');
285 }
286}
287
288/**
289 * Creates a new scope with and executes the given operation within.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected