throttle

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After

func After(d time.Duration, f func()) func()

After wraps a function so that internal function does not get called more frequently than the specified duration. The delay is added after function has been called.

func Throttle

func Throttle(d time.Duration, f func()) func()

Throttle wraps a function so that internal function does not get called more frequently than the specified duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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