perf(tauri): move blocking command work off async runtime
This commit is contained in:
1 parent
a5d9addbf3
commit
348f39ff35
11 files changed
+135
-64
No files matched your search
@@ -10,6 +10,6 @@ pub async fn check_for_updates() -> Result<UpdateInfo, String> {
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn get_system_proxy_url() -> Option<String> {
|
||||
dbx_core::update::system_proxy_url()
|
||||
pub async fn get_system_proxy_url() -> Option<String> {
|
||||
tauri::async_runtime::spawn_blocking(dbx_core::update::system_proxy_url).await.ok().flatten()
|
||||
}
|
||||
Reference in new issue
Block a user