Skip to content

Is there any way to call the backend without freezing the web window? #4191

Answered by FabianLars
Xoffio asked this question in Q&A
Discussion options

You must be logged in to vote

Make the command async, either by changing it to async fn or #[tauri::command(async)]. This way it doesn't run on the main thread.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@FabianLars
Comment options

@Xoffio
Comment options

@FabianLars
Comment options

@Xoffio
Comment options

@FabianLars
Comment options

Answer selected by Xoffio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants