debounce

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 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 struct {
	// contains filtered or unexported fields
}

Debouncer struct.

func NewDebouncer

func NewDebouncer(function func(context.Context) error, debounceTime time.Duration, logger logr.Logger) *Debouncer

Create a new debouncer.

func (*Debouncer) Debounce

func (d *Debouncer) Debounce(ctx context.Context)

Run function. First run will be in debounceTime, runs will be separated by debounceTime.

Jump to

Keyboard shortcuts

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