Function WrapAsync

Source
pub fn WrapAsync<F: Future<Output = View>>(
    f: impl FnOnce() -> F + 'static,
) -> View
Expand description

Convert an async component to a regular sync component. Also wraps the async component inside a suspense scope so that content is properly suspended.