MCPcopy
hub / github.com/immich-app/immich / initialize

Method initialize

web/src/lib/managers/cast-manager.svelte.ts:67–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 private async initialize() {
68 // this goes first to prevent multiple calls to initialize
69 if (this.initialized) {
70 return;
71 }
72 this.initialized = true;
73
74 // try to initialize each cast destination
75 for (const castDestination of this.castDestinations) {
76 const destAvailable = await castDestination.initialize();
77 if (destAvailable) {
78 this.availableDestinations.push(castDestination);
79 }
80 }
81 }
82
83 // monitor all cast destinations for changes
84 // we want to make sure only one session is active at a time

Callers 1

constructorMethod · 0.95

Calls 2

initializeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected