Help us shape the future of Go! Take the 2026 Go Developer Survey

throttle

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After added in v0.8.0

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