Skip to content

Documentation / @andrew_l/app / shutdownApp

Function: shutdownApp() ​

shutdownApp(instance): Promise<ExecResult>

Shut down an app instance, call its shutdown hook, and reset all state.

Parameters ​

instance ​

AppInstance

Returns ​

Promise<ExecResult>

Example ​

ts
await stopApp(instance);
await shutdownApp(instance);
// instance can be set up and started again after this