arkui

Waking

What wakes a window that runs no loop, and what holds the splash until the first screen is ready.

Desktop

arkui::wake

A window that runs no loop sleeps until something rings its Bell: a page's hashchange and popstate ring it (wake::page_changes).

arkui::wake

What wakes a window that runs no loop: a bell anything can ring, one timer at a deadline, and the browser's address bar moving.

Rules

rust/arkui/src/wake.rs

Mobile

Where

  • ui/Splash.kt: holdSplashUntil

How

  • holdSplashUntil(ceilingMs) { ready }: in onCreate, before setContent.

Nothing shared for this on iOS yet.