Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tensorush/zig-backoff
Zig implementation of exponential backoff algorithm.
https://github.com/tensorush/zig-backoff
back-off backoff backoff-algorithm backoff-algorithms backoff-strategy collision-avoidance exponential-backoff rate-limiting retry retry-strategies retrying zig zig-lib zig-library zig-package ziglang
Last synced: about 9 hours ago
JSON representation
Zig implementation of exponential backoff algorithm.
- Host: GitHub
- URL: https://github.com/tensorush/zig-backoff
- Owner: tensorush
- License: mit
- Created: 2024-01-30T19:54:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T06:04:04.000Z (3 months ago)
- Last Synced: 2024-08-01T07:46:52.058Z (3 months ago)
- Topics: back-off, backoff, backoff-algorithm, backoff-algorithms, backoff-strategy, collision-avoidance, exponential-backoff, rate-limiting, retry, retry-strategies, retrying, zig, zig-lib, zig-library, zig-package, ziglang
- Language: Zig
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-backoff
[![CI][ci-shd]][ci-url]
[![LC][lc-shd]][lc-url]### Zig implementation of [exponential backoff algorithm](https://en.wikipedia.org/wiki/Exponential_backoff).
### :rocket: Usage
- Add `backoff` dependency to `build.zig.zon`.
```sh
zig fetch --save https://github.com/tensorush/zig-backoff/archive/.tar.gz
```- Use `backoff` dependency in `build.zig`.
```zig
const backoff_dep = b.dependency("backoff", .{
.target = target,
.optimize = optimize,
});
const backoff_mod = backoff_dep.module("Backoff");
.root_module.addImport("Backoff", backoff_mod);
```[ci-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-backoff/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black
[ci-url]: https://github.com/tensorush/zig-backoff/blob/main/.github/workflows/ci.yaml
[lc-shd]: https://img.shields.io/github/license/tensorush/zig-backoff.svg?style=for-the-badge&labelColor=black
[lc-url]: https://github.com/tensorush/zig-backoff/blob/main/LICENSE