debounce

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debounce

func Debounce(d time.Duration, fn func()) func()

Debounce takes a duration `d` and a function `fn` and returns a new function. When the returned function is repeatedly called, `fn` will only be executed after there have been no calls for at least `d` duration.

func DebounceWithParam

func DebounceWithParam[T any](d time.Duration, fn func(T)) func(T)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL