Documentation / @andrew_l/app / shutdownApp
Function: shutdownApp()
shutdownApp(
instance):Promise<ShutdownResult>
Shut down an app instance, call its shutdown hook, and reset all state.
Parameters
instance
Returns
Promise<ShutdownResult>
Example
ts
await stopApp(instance);
await shutdownApp(instance);
// instance can be set up and started again after this