debouncer

package
v1.4.100 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debouncer

type Debouncer[T any] interface {
	Do(T)
	Flush()
	Close()
}

Debouncer represents an entity capable of debouncing function calls.

func New added in v1.4.96

func New[T any](debounceTime, maxWaitTime time.Duration, fn func(T)) Debouncer[T]

New is the Debouncer constructor.

Jump to

Keyboard shortcuts

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