Skip to content

How to cancel processing of async commands #5894

Answered by minetake01
minetake01 asked this question in Q&A
Discussion options

You must be logged in to vote

I solved mine by keeping a count in Tauri's Manager, adding 1 to the count each time the command is called, and terminating the process if the value has changed between when the processing function was called and now.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@percy507
Comment options

@minetake01
Comment options

@percy507
Comment options

@HezinTUKE
Comment options

@minetake01
Comment options

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