Skip to content

Documentation / @andrew_l/app / stopApp

Function: stopApp() ​

stopApp(instance): Promise<ExecResult>

Stop a running app instance and call its stop hook.

Parameters ​

instance ​

AppInstance

Returns ​

Promise<ExecResult>

Example ​

ts
process.on('SIGTERM', async () => {
  await stopApp(instance);
  await shutdownApp(instance);
});