regular / pull-debounce Goto Github PK
View Code? Open in Web Editor NEWa debouncing pull-stream
a debouncing pull-stream
Rather than pollute pull-stream/pull-stream-docs#27 with this discussion, I'm opening this issue.
I have a feeling that our two implementations of debounce may serve two different purposes.
Your implementation using pull-window
will return the last data event in one window regardless of silence on the wire within or after one window. My implementation will wait until there has been silence on the wire for the length of one window, at which time it will return the last data event. As a result, my implementation will not pass your tests, and your implementation will not pass my tests.
My understanding is that the pull-window
implementation is not correct according to what I interpret debouncing to mean. Do you agree or am I misinterpreting what is really going on?
(re: https://css-tricks.com/the-difference-between-throttling-and-debouncing/#article-header-id-1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.