Skip to content

main/shutdown

Defined in: app/src/main/shutdown.ts:12

What the browser keeps and closes when it quits.

readonly clock: Clock

Defined in: app/src/main/shutdown.ts:14

readonly data: Pick<DataClient, "dispose">

Defined in: app/src/main/shutdown.ts:20

readonly logger: Logger

Defined in: app/src/main/shutdown.ts:13

readonly sessions: Pick<JsonFileSessionStore, "schedule" | "flush">

Defined in: app/src/main/shutdown.ts:16

readonly settings: Pick<JsonFileSettingsStore, "flush">

Defined in: app/src/main/shutdown.ts:15

readonly updates: Pick<UpdateService, "dispose" | "installOnExit"> | undefined

Defined in: app/src/main/shutdown.ts:22

The update service, once it has started.

readonly web: Session

Defined in: app/src/main/shutdown.ts:19

The session of web pages, whose storage and cookies are written to disk.

readonly windows: Pick<WindowManager, "snapshot" | "dispose">

Defined in: app/src/main/shutdown.ts:17

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.

ShutdownDependencies

What to keep and to close.

Promise<void>