HI. Ah cool. I didn’t know about that. So just declare it as volatile boolean.
Just so I understand it better - what’s the difference between a volatile boolean and a regular one? Is it that it can be read and written from different threads so that the thread in question has to check its value each time its references instead of assuming it is the same as it last set it?
thanks for the help, I don’t have much coding experience so I get a bit lost when I stray off the paths that I am familiar with.