MCPcopy Index your code
hub / github.com/coder/mux / initialize

Method initialize

src/node/services/policyService.ts:185–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 }
184
185 async initialize(): Promise<void> {
186 await this.refreshPolicy({ isStartup: true });
187
188 if (!this.refreshInterval) {
189 this.refreshInterval = setInterval(() => {
190 void this.refreshPolicy({ isStartup: false });
191 }, POLICY_REFRESH_INTERVAL_MS);
192 this.refreshInterval.unref?.();
193 }
194 }
195
196 dispose(): void {
197 if (this.refreshInterval) {

Callers

nothing calls this directly

Calls 1

refreshPolicyMethod · 0.95

Tested by

no test coverage detected