I am new to working with threads. I have something that runs under a thread that just scans for projects and makes sure the folder path exists.
I start it using
Thread th = new Thread(() =>
I tried running
But that doesn't stop the thread from running.
Is there an easy way to kill that thread? I have a cancel button I would like to use to stop it if needed for some reason mid scan.