throttle

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

func ThrottleAfter

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

ThrottleAfter 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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