From 906703db5f6134e5dc99670b8f2e7d143e894938 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 20 Mar 2016 17:46:12 +0000 Subject: [PATCH] Add timed release mode to delay node --- nodes/core/core/89-delay.html | 25 +++++++++++++--- nodes/core/core/89-delay.js | 13 ++++++-- nodes/core/locales/en-US/messages.json | 4 ++- test/nodes/core/core/89-delay_spec.js | 41 ++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 8 deletions(-) diff --git a/nodes/core/core/89-delay.html b/nodes/core/core/89-delay.html index 73104e5ab..937727c76 100644 --- a/nodes/core/core/89-delay.html +++ b/nodes/core/core/89-delay.html @@ -19,10 +19,11 @@
@@ -82,6 +83,9 @@ At each "tick", derived from the rate, the next "topic" is released. Any messages arriving on the same topic before release replace those in that position in the queue. So each "topic" gets a turn - but the most recent value is always the one sent.

+

The "timed release queue" adds messages to an array based on their msg.topic property. + At each "tick", all the latest messages are released. Any new messages arriving before release will + replace those of the same topic.