diff options
Diffstat (limited to 'src/app/utils.rs')
-rw-r--r-- | src/app/utils.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/app/utils.rs b/src/app/utils.rs deleted file mode 100644 index 673b96e..0000000 --- a/src/app/utils.rs +++ /dev/null @@ -1,9 +0,0 @@ -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); -} |