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

Method close

packages/core/src/js/client.ts:134–145  ·  view source on GitHub ↗

* @inheritDoc

()

Source from the content-addressed store, hash-verified

132 * @inheritDoc
133 */
134 public close(): PromiseLike<boolean> {
135 // Clean up native log listener
136 if (this._removeNativeLogListener) {
137 this._removeNativeLogListener();
138 this._removeNativeLogListener = undefined;
139 }
140
141 // As super.close() flushes queued events, we wait for that to finish before closing the native SDK.
142 return super.close().then((result: boolean) => {
143 return NATIVE.closeNativeSdk().then(() => result);
144 });
145 }
146
147 /**
148 * Sends user feedback to Sentry.

Callers 15

fetchModulesMethod · 0.80
closeNativeSdkMethod · 0.80
metrics.test.tsFile · 0.80
closeFunction · 0.80
ErrorsScreenFunction · 0.80
TabOneScreenFunction · 0.80
enableCrashOnStartMethod · 0.80
getExampleAssetDataMethod · 0.80
ErrorsScreenFunction · 0.80
createSentryServerFunction · 0.80

Calls 1

closeNativeSdkMethod · 0.65

Tested by

no test coverage detected