Debounce
Waits for an inactivity delay before transmitting data. If new data arrives during the delay, the timer is reset.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
debounceMs | number | Yes | No | Wait time in milliseconds without a new event before continuing execution. (min 100, max 300000) |
mode | choice (leading, trailing, both) | No | No | Debounce mode: leading (execute immediately), trailing (execute after stabilization), or both. (Default: "trailing") |
maxWaitMs | number | No | No | Maximum total wait time in milliseconds, even if new events keep arriving. |
keyExpression | text | No | No | Expression 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).