Conversation
|
Can you also review and discuss this commit from another account I have? I thought this package could use a way to support a single argument to the callback functions. While it does complicate the simplicity of the original package in number of functions to interact with on the Debouncer struct, I would think people would appreciate either invoking a argument-less function or in the case of needing arguments, they would use There's a lot more power in receiving data. Let's say you had a slider of 0-100 and the user is sliding up and down in .25 increments like crazy and you have a websocket binding from a web gui to golang. You use this package to send the values to this debouncer and then offload payloads every 250 milliseconds to a device because there are too many events happening as the user jumps up and down a slider sending events, but you want the last known "jump" or "increment" the person went crazy moving the volume on a slider. This parameter allows you to ignore all values and only send the last known value passed as an any type to your function which will then make an API request to a device for the volume change. |
No description provided.