rjdebounce
Super simple library to do a super simple thing. Debounce a function. Zero dependencies.
Example
use Bouncer;
let mut bouncer = new;
let result = bouncer.debounce
assert_eq!;
assert_eq!;
OR...
use Bouncer;
let func = ;
let delay = from_secs;
let mut bouncer = new.with_func;
assert_eq!;
bouncer.execute;
assert_eq!;
Do I plan to expand on this library?
Yeah absolutely. I'd love to make a bigger lib.
Should I use this in production?
I mean... sure, if you want. But this is just practice for me. I do not have a licence for this and I purely wrote it to get a feel for cargo and package management. I will use this in my personal projects though. So feel free!