Working WiFi toggle!

This commit is contained in:
Lucy 2022-02-07 14:14:55 -05:00
parent b9a471a5fb
commit 0d54744537
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
4 changed files with 55 additions and 6 deletions

View file

@ -10,6 +10,14 @@ where
crate::RT.spawn(future)
}
pub fn block_on<O, F>(future: F) -> O
where
F: Future<Output = O> + Send + 'static,
O: Send + 'static,
{
crate::RT.block_on(future)
}
pub fn spawn_local<F: Future<Output = ()> + 'static>(future: F) {
gtk4::glib::MainContext::default().spawn_local(future);
}