0.1.0 • Published 8 years ago

flyd-debouncetime v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

flyd-debounceTime

Build Status

debounceTime implementation for flyd streams. Similar to flyd-aftersilence, but it only emits the last value received.

Usage

var stream$ = flyd.stream()
var debounce$ = debounceTime(500, stream$)

stream$(1)
assert.deepEqual(debounce$(), undefined)
stream$(2)
stream$(3)
assert.deepEqual(debounce$(), undefined)

setTimeout(function () {
  assert.deepEqual(debounce$(), 3)
  done()
}, 550)
0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago