main/shutdown
Interfaces
Section titled “Interfaces”ShutdownDependencies
Section titled “ShutdownDependencies”Defined in: app/src/main/shutdown.ts:12
What the browser keeps and closes when it quits.
Properties
Section titled “Properties”
readonlyclock:Clock
Defined in: app/src/main/shutdown.ts:14
readonlydata:Pick<DataClient,"dispose">
Defined in: app/src/main/shutdown.ts:20
logger
Section titled “logger”
readonlylogger:Logger
Defined in: app/src/main/shutdown.ts:13
sessions
Section titled “sessions”
readonlysessions:Pick<JsonFileSessionStore,"schedule"|"flush">
Defined in: app/src/main/shutdown.ts:16
settings
Section titled “settings”
readonlysettings:Pick<JsonFileSettingsStore,"flush">
Defined in: app/src/main/shutdown.ts:15
updates
Section titled “updates”
readonlyupdates:Pick<UpdateService,"dispose"|"installOnExit"> |undefined
Defined in: app/src/main/shutdown.ts:22
The update service, once it has started.
readonlyweb:Session
Defined in: app/src/main/shutdown.ts:19
The session of web pages, whose storage and cookies are written to disk.
windows
Section titled “windows”
readonlywindows:Pick<WindowManager,"snapshot"|"dispose">
Defined in: app/src/main/shutdown.ts:17
Functions
Section titled “Functions”shutDown()
Section titled “shutDown()”shutDown(
dependencies):Promise<void>
Defined in: app/src/main/shutdown.ts:31
Shuts the browser down: saves the settings, the session, the storage and the cookies of web pages, waiting for them up to the time limit of the lifecycle, then closes the windows and the data service, and installs an update that is ready.
Parameters
Section titled “Parameters”dependencies
Section titled “dependencies”What to keep and to close.
Returns
Section titled “Returns”Promise<void>