Hi, newbie, so sorry for my question if that sounds naive.
I want to implement a thread that runs in the background and is constantly listening. Listening to what I mean, let's say it continues to check the value returned from the main thread, and if the vaue value exceeds a certain digit, it executes some method or says it quits the program.
If you could give me some idea or at least refer to something useful, that would be great.
source
share