appProcess.current.requestClose
API reference for the appProcess.current.requestClose method.
Requests the termination of the current 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
Returns
Promise<void>