How to call method in fixed time interval (without threads)
<p>I have to handle animation of some objects. For now I have done it with 4 methods: <code>getAnimationCooldown()</code>, <code>resetAnimationCooldown()</code>, <code>subAnimationCooldown()</code> and <code>nextFrame()</code>. </p>

<p>But for sure there is easier way to do this. I'd like to call method <code>nextFrame()</code> every 100ms. Is there an easy way to do this? I know <code>ScheduledExecutor</code> and <code>Timer</code> but I see they create new threads for this task and I need to call this method in <code>for()</code> loop for every object in this loop. So is there some easy way to just call it like:</p>

<pre><code>for (Object object : objects) {
 every(100, TimeUnit.MILISECONDS) {
  object.nextFrame();
 }
}
</code></pre>
