Add autoreset option to delay node

Hi, often it happens to me that I need to deay a message, but if another event happens I have to push in the same delay node the new message, and I need to delete the previous one. If I don't send a reset:1 before sending the new message I'll have 2 queues in the delay node, and I don't want this.
To be sure only the previous message is delayed I always add an extra delay node on the flow, to delay the new message after a reset:1. So, briefly, in the function node I need to add an extra output which sends a reset:1, and on the main output a fixed delay node (like 10 milliseconds), that push the new message.
It would be lovely to have an option on delay node "when a new message is incoming, forget the one before waiting to be outputed".
Or maybe there is anothe way? Thanks

Does the trigger node work for this?

2 Likes

thanks, trigger is very powerful node! I have to keep that in mind

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.