Function create_suspense_scope
pub fn create_suspense_scope<T>(f: impl FnOnce() -> T) -> (T, SuspenseScope)
Expand description
Calls the given function and registers all suspense tasks.
Returns a tuple containing the return value of the function and the created suspense scope.
If this is called inside another call to [await_suspense
], this suspense will wait until the
parent suspense is resolved.