https://github.com/space-code/throttle
throttle is a handy tool for task throttling
https://github.com/space-code/throttle
golang throttle throttler
Last synced: 12 months ago
JSON representation
throttle is a handy tool for task throttling
- Host: GitHub
- URL: https://github.com/space-code/throttle
- Owner: space-code
- License: mit
- Created: 2023-10-16T13:40:49.000Z (over 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-11-02T14:56:59.000Z (over 2 years ago)
- Last Synced: 2025-01-11T06:45:30.632Z (about 1 year ago)
- Topics: golang, throttle, throttler
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
throttle
## Description
throttle is a handy tool for task throttling.
- [Usage](#usage)
- [Installation](#installation)
- [Communication](#communication)
- [Contributing](#contributing)
- [Author](#author)
- [License](#license)
## Usage
```go
throttler := throttle.New(2 * time.Second)
throttler.Do(func() {
// your implementation here
})
```
## Installation
```sh
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.