pub async fn flush()Available on (crate features
test) and not (WebAssembly and non-WASI and non-crate feature not_browser_env) only.Expand description
Flush all pending scheduler work, ensuring all rendering and lifecycle callbacks complete.
On non-browser targets, the scheduler runs synchronously so this simply drains pending work.