refactor: streamline profile import logic and enhance error handling (#5051)

This commit is contained in:
Tunglies
2025-10-14 12:39:22 +08:00
committed by GitHub
parent db091f5d2e
commit 3d96a575c0
5 changed files with 103 additions and 130 deletions

View File

@@ -8,9 +8,9 @@ use tauri::{async_runtime, async_runtime::JoinHandle};
pub struct AsyncHandler;
impl AsyncHandler {
pub fn handle() -> async_runtime::RuntimeHandle {
async_runtime::handle()
}
// pub fn handle() -> async_runtime::RuntimeHandle {
// async_runtime::handle()
// }
#[track_caller]
pub fn spawn<F, Fut>(f: F) -> JoinHandle<()>