Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.05 KB

zig-backoff

CI LC

Zig implementation of exponential backoff algorithm.

🚀 Usage

  • Add backoff dependency to build.zig.zon.
zig fetch --save https://github.com/tensorush/zig-backoff/archive/<git_tag_or_commit_hash>.tar.gz
  • Use backoff dependency in build.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);