use std::future::Future; /// Spawns a task on the default executor, without waiting for it to complete pub fn spawn<F>(future: F) where F: Future<Output = ()> + 'static, { gtk4::glib::MainContext::default().spawn_local(future); }