Delays queuing until after ms milliseconds have elapsed since the last time this transformer received anything. The queuing behavior is configurable.
ms
Optional
Using the trailing behavior.
--a-b-c--------------d-----------debounce(20)// Same as...debounce(20, new DebounceTrailingBehavior())-------------c---------------d--- Copy
--a-b-c--------------d-----------debounce(20)// Same as...debounce(20, new DebounceTrailingBehavior())-------------c---------------d---
Using the leading behavior.
--a-b-c--------------d-----------debounce(20, new DebounceLeadingBehavior())---a------------------d---------- Copy
--a-b-c--------------d-----------debounce(20, new DebounceLeadingBehavior())---a------------------d----------
Using both leading and trailing behaviors
--a-b-c--------------d-----------debounce(20, [ new DebounceLeadingBehavior(), new DebounceTrailingBehavior()])---a----------c--------d---------- Copy
--a-b-c--------------d-----------debounce(20, [ new DebounceLeadingBehavior(), new DebounceTrailingBehavior()])---a----------c--------d----------
Delays queuing until after
msmilliseconds have elapsed since the last time this transformer received anything. The queuing behavior is configurable.