MCPcopy
hub / github.com/nestjs/nest / close

Method close

packages/core/nest-application-context.ts:277–284  ·  view source on GitHub ↗

* Terminates the application * @returns {Promise<void>}

(signal?: string)

Source from the content-addressed store, hash-verified

275 * @returns {Promise<void>}
276 */
277 public async close(signal?: string): Promise<void> {
278 await this.initializationPromise;
279 await this.callDestroyHook();
280 await this.callBeforeShutdownHook(signal);
281 await this.dispose();
282 await this.callShutdownHook(signal);
283 this.unsubscribeFromProcessSignals();
284 }
285
286 /**
287 * Sets custom logger service.

Callers

nothing calls this directly

Calls 5

callDestroyHookMethod · 0.95
disposeMethod · 0.95
callShutdownHookMethod · 0.95

Tested by

no test coverage detected