Debounce
Function debouncer.

Installation
To install the package, run:
go get github.com/go-zoox/debounce
Getting Started
import (
"testing"
"github.com/go-zoox/debounce"
)
func main(t *testing.T) {
count := 0
fn := func() {
count++
}
debouncedFn := New(fn, 10*time.Millisecond)
for i := 0; i < 100; i++ {
debouncedFn()
}
time.Sleep(20 * time.Millisecond)
fmt.Println(count)
}
Inspired By
License
GoZoox is released under the MIT License.