pub fn suspense_scope<'a>(cx: Scope<'a>, f: impl Future<Output = ()> + 'a)
Expand description

Creates a new “suspense scope”. This scope 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 rendering the UI.

The scope ends when the future is resolved.