Skip to main content

launch_in_app_thread

Function launch_in_app_thread 

Source
pub(crate) fn launch_in_app_thread(
    x: i32,
    y: i32,
    w: u32,
    h: u32,
    title: &str,
    app: Box<dyn App>,
)
Expand description

アプリを OS のメインループではなくアプリのスレッド(app_runner、ProxyApp)で開く(2026-11-18、TODO R3)。 ほかのアプリ(files など)が直接 Window::new + add_window で開くと、そのアプリの描画・入力・JS・ 同期の取得(<script src> など)が OS のメインループ(gui_shell)の上で走り、遅い相手に OS ごと待たされる。