A behavior that will increase the debounce time whenever events are received within the current time. It's best to be used in conjunction with the DebounceTrailingBehavior:class or the DebounceLeadingBehavior:class.
debounce:function
--a--b---c----d----|debounce(5, [ new DebounceBackOffBehavior({ inc: (ms) => ms * 2 }), new DebounceTrailingBehavior(),])--T5-T10-T20--T40-d- Copy
--a--b---c----d----|debounce(5, [ new DebounceBackOffBehavior({ inc: (ms) => ms * 2 }), new DebounceTrailingBehavior(),])--T5-T10-T20--T40-d-
Called only once, when the debouncer is constructed.
This is will be called once for every chunk received and before the timer has been set.
Whether or not the current chunk was queued to the next Readable.
Optional
The timer Id/handle.
A behavior that will increase the debounce time whenever events are received within the current time. It's best to be used in conjunction with the DebounceTrailingBehavior:class or the DebounceLeadingBehavior:class.
See
debounce:function
Example