Function create_suspense_task
pub fn create_suspense_task(f: impl Future<Output = ()> + 'static)
Expand description
Creates a new task that is to be tracked by the suspense system.
This is used to signal to a Suspense
component higher up in the component hierarchy that
there is some async task that should be awaited before showing the UI.
If this is called from outside a suspense scope, the task will be executed normally.