MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / dispose

Method dispose

packages/cloud/src/CloudService.ts:347–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345 // Lifecycle
346
347 public dispose(): void {
348 if (this.authService) {
349 this.authService.off("auth-state-changed", this.authStateListener)
350 this.authService.off("user-info", this.authUserInfoListener)
351 }
352
353 if (this.settingsService) {
354 if (this.settingsService instanceof CloudSettingsService) {
355 this.settingsService.off("settings-updated", this.settingsListener)
356 }
357
358 this.settingsService.dispose()
359 }
360
361 if (this._retryQueue) {
362 this._retryQueue.dispose()
363 }
364
365 this.isInitialized = false
366 }
367
368 private ensureInitialized(): void {
369 if (!this.isInitialized) {

Callers 1

createInstanceMethod · 0.95

Calls 2

offMethod · 0.65
disposeMethod · 0.65

Tested by

no test coverage detected