Function relm4::spawn_future
source · pub fn spawn_future<F: Future<Output = ()> + Send + 'static>(f: F)
Expand description
Spawns a future on the main thread in the main event loop.
Panics
This function itself doesn’t panic but it might panic if you run futures that
expect the tokio runtime. Use the tokio-rt feature and an AsyncComponent
for this instead.