package throttle
import "github.com/moby/buildkit/util/throttle"
Index ¶
- func Throttle(d time.Duration, f func()) func()
- func ThrottleAfter(d time.Duration, f func()) func()
Functions ¶
func Throttle ¶
Throttle wraps a function so that internal function does not get called more frequently than the specified duration.
func ThrottleAfter ¶
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.
Source Files ¶
- Version
- v0.6.1
- Published
- Aug 15, 2019
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 2 minutes ago –
Tools for package owners.