throttle

package
v0.0.0-...-a5f7211 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

"This thing should happen 3 times a second at most"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BurstThrottler

func BurstThrottler(count int, duration time.Duration) (func(fn func()), func())

BurstThrottler(3, time.Second) => "only let this fn happen 3 times a second"

Types

This section is empty.

Jump to

Keyboard shortcuts

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