iohook
iohook copied to clipboard
throttling or debouncing interval [feature erequest]
Would it be possible to add some kind of configuration to receive at-most on event every n seconds? Without implementing this manually in user-space with lodash.debounce?
Not likely. The issue I see here is that an IO capture library should capture all events, implementing some form of filter should be something added-on, not a part or feature of the capture solution. Debouncing is the wrong term here too. The possible use for such a feature would be time-delimited repetitive action activated on IO events, but not debouncing.
This will be left open as a feature request and the way I think this should be implemented (if implemented) would be something like a frequency filter iohook.setFrequency('mousemove', 0.2)
(1 of every 5 consecutive mousemove
events will be propagated) or something similar.