stream-debounce
DEPRECATION NOTICE
This module has been renamed to debounce-stream.
Example
var events = values = debounce = // values is a stream that progressively updates on user input // emit only after a pause of 500 ms
API
debounce([milliseconds] [, immediate])
- Create a new debounce duplex streammilliseconds
- Integer. The number of milliseconds to debounce the stream. Defaults to100
immediate
- Boolean. Iftrue
, the debounced function will call immediately, rather than at the end of input. Default isfalse
.
Returns a duplex stream that accepts values on one end, and emits the debounced values on the other.
License
MIT. See LICENSE for details.