Skip to main content

initialize

Function initialize 

Source
pub async fn initialize(
    task_manager: &Manager,
    virtual_file_system: &VirtualFileSystem,
    task: TaskIdentifier,
) -> Setting
Expand description

Load the stored setting and publish its TZ string as TZ via [task::Manager::set_system_environment_variable] (in the root task and in every task whose TZ matches the root task’s previous value, which is every task without TZ when called once at start-up). Call it once at start-up, after the file systems are mounted and before the shell or the startup application starts. It returns the setting in use, UTC when the stored one is missing or invalid.