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

Function deferredShutdown

packages/core/test/nest-application-context.spec.ts:137–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 process.on(signal, ignoreProcessSignal);
136
137 const deferredShutdown = async () => {
138 await setTimeout(1);
139 process.kill(process.pid, signal);
140 };
141 void Promise.all([applicationContext.init(), deferredShutdown()]);
142
143 await clock.nextAsync();

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected