pub fn spawn<F>(task: F)where F: Future<Output = Result<()>> + Send + 'static,
Spawn an async task that will result in egui redraw upon its completion.