Quote:
Originally Posted by SamCarlberg
You can use java.util.Timer and java.util.TimerTask to schedule something to happen in the future while your program still runs.
|
This method would work in this case (assuming the Solenoid methods are thread-safe), but I would be worried about possible race conditions if more complicated logic were to later be added in the TimerTask.
Also: Hi Sam!