combine

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: AGPL-3.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 Debounce

type Debounce struct {
	// contains filtered or unexported fields
}

func NewDebounce

func NewDebounce(after time.Duration) *Debounce

func (*Debounce) Add

func (d *Debounce) Add(f func()) (count int)

func (*Debounce) Clear

func (d *Debounce) Clear()

type DebouncingThrottle

type DebouncingThrottle struct {
	Throttle
	Debounce
}

func NewDebouncingThrottle

func NewDebouncingThrottle(duration time.Duration) *DebouncingThrottle

func (*DebouncingThrottle) Add

func (td *DebouncingThrottle) Add(fn func()) (count int)

func (*DebouncingThrottle) Clear

func (td *DebouncingThrottle) Clear()

func (*DebouncingThrottle) Stop

func (td *DebouncingThrottle) Stop()

type Throttle

type Throttle struct {
	// contains filtered or unexported fields
}

func NewThrottle

func NewThrottle(duration time.Duration) *Throttle

func (*Throttle) Add

func (t *Throttle) Add() (count int)

Jump to

Keyboard shortcuts

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