1 Dec 2006 01:46
Re: timer repeating behaviour
Mike Caron <caron.mike <at> gmail.com>
2006-12-01 00:46:07 GMT
2006-12-01 00:46:07 GMT
On 11/30/06, Bob the Hamster <Bob <at> hamsterrepublic.com> wrote: > On Wed, Nov 29, 2006 at 08:38:29PM -0500, Mike Caron wrote: > > On 11/29/06, Bob the Hamster <Bob <at> hamsterrepublic.com> wrote: > > > Mike, regarding the new timer script feature. > > > > > > Common usage would suggest that the timer would go off once, and that if > > > you wanted it to repeat at an interval you would need to use set timer() > > > again once for each cycle. > > > > > > My own tests seem to confirm that this is the way it actually works > > > > > > But the documentation in plotdict.xml is a little vague, and might seem > > > to suggest that the script gets called over and over again each time the > > > counter counts down > > > > > > As I originally read it, I assume this was the behaviour, and I wrote my > > > scripts to expect to have to run stop timer() to prevent themselves from > > > recurring > > > > > > I just want to confirm whether you think the current behaviour is > > > correct, and that the docs are wrong(ish) rather than vice-versa > > > > I liken set timer to javascript's similar feature, called > > setTimeout(). You set it, and then when it goes off, you have to set > > it again to continue it. That's how I intended (or, more accurately, > > did not *not* intend) it. > > Excellent. Now that you mention it, I remember that javascript feature. > > > Now, the part of the docs you likely find confusing is this line:(Continue reading)
RSS Feed