Skip to main content

Debounce

Waits for an inactivity delay before transmitting data. If new data arrives during the delay, the timer is reset.

Parameters

ParameterTypeRequiredVariableDescription
debounceMsnumberYesNoWait time in milliseconds without a new event before continuing execution. (min 100, max 300000)
modechoice (leading, trailing, both)NoNoDebounce mode: leading (execute immediately), trailing (execute after stabilization), or both. (Default: "trailing")
maxWaitMsnumberNoNoMaximum total wait time in milliseconds, even if new events keep arriving.
keyExpressiontextNoNoExpression to group debounces by key. Allows isolating debounces by entity or category.

Output

Output variable : debouncedData

{
"data": "..."
}

Example

Wait 1 second of inactivity before processing.

Input :

{"data": "derniere valeur"}

Output :

{"data": "derniere valeur"}
Tip

Useful to avoid repetitive processing on rapid events (user input, continuous data streams).