Skip to content
Discussion options

You must be logged in to vote

This function is not tauri command, I execute it in .setup() in tauri::async_runtime::spawn()

Is the setup hook / tauri builder running inside your own tokio runtime (for example if you have an async main fn annotated with #[tokio::main]) ?

Anyway, i don't see why you're using block_on in an async function, you can just use .await on the futures you want to await/block on

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pan-grayza
Comment options

Answer selected by pan-grayza
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