Requests the termination of the specified app process.
Once called, this method:
- Transitions the state of the process to
"closing"
. - Invokes all registered
setOnDispose
callbacks. - Waits for the process to finish closing.
- Transitions the state of the process to
"closed"
.
Each time the state changes, all of the registerOnStateChange
callbacks are called..
Parameters
Required
The ID of an app process.
Returns
Promise<void>