Skip to content

space-code/throttle

Repository files navigation

throttle

Liscence CI

Description

throttle is a handy tool for task throttling.

Usage

throttler := throttle.New(2 * time.Second)
throttler.Do(func() {
    // your implementation here
})

Installation

go install github.com/space-code/throttle@latest

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Contributing

Bootstrapping development environment

make bootstrap

Please feel free to help out with this project! If you see something that could be made better or want a new feature, open up an issue or send a Pull Request!

Author

Nikita Vasilev, nv3212@gmail.com

License

throttle is available under the MIT license. See the LICENSE file for more info.