pub fn spawn_ui_task(
future: impl Future<Output = ()> + 'static,
) -> Option<TaskHandle>Expand description
Spawns future on the current runtime’s UI task queue.
Framework-internal: application code launches through a
CoroutineScope so the work is cancelled with its
composition. Returns None when there is no runtime on this thread.