refactor: streamline profile import logic and enhance error handling (#5051)
This commit is contained in:
@@ -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<()>
|
||||
|
||||
Reference in New Issue
Block a user