throttle

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 39

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