How can i stop thread execution in rust?
I am developing a file explorer and i want to implement search function in another thread, but i want it to be stoppable on signal.
its tauri project so it has window object which listens to events from frontend
is there a way to stop thread execution on signal or something?