flow
: The input flow that triggers the debounce.waitDuration
: The amount of time (in seconds) to wait before allowing the flow to continue. Default value is 0.cancel
: An optional flow input that, when triggered, cancels the current debounce and resets the timer.flow
: The output flow that is triggered after the specified waitDuration
has elapsed since the last input flow
trigger.flow
input to the event or action you want to debounce.waitDuration
input to the desired delay time in seconds.cancel
input to a flow that should cancel the current debounce and reset the timer.flow
output to the nodes that should be triggered after the debounce delay.waitDuration
based on the specific use case. A longer duration will reduce the frequency of the debounced action but may feel less responsive to the user.cancel
input when you need a way to immediately cancel a pending debounce and reset the timer, such as when the user clears the search box.waitDuration
is set too low, the debounce may not have a noticeable effect on the flow rate.