spawn_local_scoped

Function spawn_local_scoped 

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

Calls Executor::spawn_local, but ensures that the task runs under the current reactive Owner and observer.

Does not cancel the task if the owner is cleaned up.