Function spawn

Source
pub fn spawn<F>(task: F)
where F: Future<Output = Result<()>> + Send + 'static,
Expand description

Spawn an async task that will result in egui redraw upon its completion.