Zig implementation of exponential backoff algorithm.
- Add
backoff
dependency tobuild.zig.zon
.
zig fetch --save https://github.com/tensorush/zig-backoff/archive/<git_tag_or_commit_hash>.tar.gz
- Use
backoff
dependency inbuild.zig
.
const backoff_dep = b.dependency("backoff", .{
.target = target,
.optimize = optimize,
});
const backoff_mod = backoff_dep.module("Backoff");
<compile>.root_module.addImport("Backoff", backoff_mod);