Registry / utility / bep-debounce

bep-debounce

JSON →
library1.2.1gogounverified

Package debounce provides a debouncer func, useful for delaying actions like UI updates until user input pauses.

go get github.com/bep/debounce
INSTALL
IMPORT
SIG · BEP-DEBOUNCE
B
bep-debounce
utilitygov1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

debounce
github.com/bep/debounce

Debounce a function call

package main import ( "fmt" "time" "github.com/bep/debounce" ) func main() { f := debounce.New(100 * time.Millisecond) f(func() { fmt.Println("debounced") }) time.Sleep(200 * time.Millisecond) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Meta
1
OpenAI (training)
1
Resources
bep-debounce — go get bep-debounce · libregistry