sycamore::futures

Function spawn_local_scoped

pub fn spawn_local_scoped(fut: impl Future<Output = ()> + 'static)
Expand description

Spawns a !Send future on the current scope.

If the scope is destroyed before the future is completed, it is aborted immediately. This ensures that it is impossible to access any values referencing the scope after they are destroyed.