Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
/ flyd-debounceTime Public archive

debounceTime implementation for flyd streams

Notifications You must be signed in to change notification settings

bortexz/flyd-debounceTime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

debounceTime implementation for flyd streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published