debouncer

package
v1.4.66 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebouncer

func NewDebouncer[T any](debounceTime time.Duration, fn func(T)) chan<- T

NewDebouncer is the debouncer constructor.

Types

type Debouncer

type Debouncer[T any] struct {
	// contains filtered or unexported fields
}

Debouncer represents an entity capable of debouncing function calls.

Jump to

Keyboard shortcuts

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