mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-21 10:49:19 +00:00
23 lines
443 B
TypeScript
23 lines
443 B
TypeScript
// Copyright 2017-2020 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
let shouldQuitFlag = false;
|
|
|
|
export function markShouldQuit(): void {
|
|
shouldQuitFlag = true;
|
|
}
|
|
|
|
export function shouldQuit(): boolean {
|
|
return shouldQuitFlag;
|
|
}
|
|
|
|
let isReadyForShutdown = false;
|
|
|
|
export function markReadyForShutdown(): void {
|
|
isReadyForShutdown = true;
|
|
}
|
|
|
|
export function readyForShutdown(): boolean {
|
|
return isReadyForShutdown;
|
|
}
|