4 ms·
I'm trying to do this right now, by taking lessons from Clojure and applying them in regular Java code. The result is something I'd never expect to see in Java,
by radu_floricica 16y ago
I'm trying to do this right now, by taking lessons from Clojure and applying them in regular Java code. The result is something I'd never expect to see in Java, but makes for better and cleaner code. Stuff like:
schedule(this, "doStuffRegularly", 1000);
Which starts a thread that runs this.doStuffRegularly() every 10 seconds
- dablya 16y agoHow surprised would you be if that stuff ran every second?
- cfontes 16y agoIf it's milisecs it sure does
- radu_floricica 16y agoActually, I have a counter in doStuff which only executes it once every 10 times. Meh, you got me.