Skip to content

Documentation / @andrew_l/app / appWaitShutdown

Function: appWaitShutdown() ​

appWaitShutdown(instance): Promise<void>

Returns a promise that resolves when the app emits its shutdown event. Resolves immediately if the app is not running.

Parameters ​

instance ​

AppInstance

Returns ​

Promise<void>

Example ​

ts
await startApp(myApp, props);
await appWaitShutdown(instance); // blocks until shutdown