-
I handle my tauri app in a tokio::spawn which allows me to do various things in parallel, one of them being sending a "reset" call to my other runnning tasks. The tauri app receives this call through a CancellationToken and should exit its event loop, terminating the task. The closest way I've found to do this is by using AppHandle.exit(exit_code), unfortunately it also exits the process (and kill my tasks). Is what I'm asking even possible ? |
Beta Was this translation helpful? Give feedback.
Answered by
eldoccc
Oct 10, 2024
Replies: 1 comment
-
the solution I found was to use run_iteration() in a loop instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eldoccc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the solution I found was to use run_iteration() in a loop instead.