Closed sriramsv closed 4 years ago
I need to think about this. I don't think the current structure of the code would be able to handle this. At the moment I'm rather busy with my work schedule which is keeping me from looking at anything to do with mytimeout. So I'm not saying no and not ignoring you.
ok, thanks a lot, I could try to do send you a pull-request over the weekend, but I am bit of a JS noob.
Sriramsv, I'm going to close this for now. This would be a major change in the way the code works and I'm not quite sure how to implement that. I'll keep it on the wish list.
And for the record I'm not an expert at Javascript. I just decided to write some code one day and ended up with mytimeout. :-)
I would like to have a functionality which the original
delay
node in node-red has, variable delay per message topic which allows us to run multiple instances of the timer based on themsg.topic
value passed to the node. I tried doing the same with themytimeout
and new invocations always reset the timer. Would be really nice to keep multiple timers running.Sample Flow: