Skip to main content

spawn_local

Function spawn_local 

Source
pub fn spawn_local(future: impl Future<Output = ()> + 'static) -> TaskHandle
Expand description

Runs future on the UI thread. It is cancelled when the current reactive scope (e.g. the component that started it) is disposed.