BvG wrote:I don't really see any advantage for this, considering the script below works fine already. Maybe you can elaborate about what would be the difference to this existing approach?
Of course you don't see any advantage, because you've been using Rev since the days of Methuselah!

Ok, Ok, so we're both as old as Methuselah, but you've been using Rev far longer than me!

The thing is, old dogs using Rev know all the neat little tricks and work arounds, but the new users of Rev have no clue of such things. Touting this as an actual feature and being documented as such would allow users to find this ability quickly instead of trying to find some vague references to "send vagueHomeBrewTimerEvent to me in 5 seconds"
Time is an event. Rev is "Event Driven", so why not include the timer as an event as it should be?
The timer should've been something included in Rev already, it seems to me to that it would fit right in correctly as an event message as I suggested. Regardless of the work around noted, most users are not going to realize that or even find that workaround. A timer event message would be so much easier for all users to find and use, and it would save a lot of users time. Who would think to look up "send" when they need a "timer"? Or would they likely seek "timer" in the docs? Type the word timer in the rev docs search, you get "lowResolutionTimers", which offers no assistance in setting up and or using a timer in Rev. Nothing about how to use "send" as a timer at all. So the user is left with nothing at all. Now they have the choice of scrapping their project, using another language that does have a timer event, seeking help on the mailing list or forums, provided they even have net access where they are working on their project. In any scenario, they've just lost time (no pun intended).
And instead of using "send" and then having to use different code, or more code to turn off your home brew timer, you could simply turn it off and on in a fashion such as this:
set the timer of me to false
or to turn it back on:
set the timer of me to true
and to set, or reset the required interval, something like this:
set the timerInterval of me to 3 seconds
It just seems logical to me, it just seems to fit the Rev flow properly, as if it was a missing piece that should finally be put in.
Anyway, just a suggestion.
~Garrett