Skip to content

Zig implementation of exponential backoff algorithm.

License

Notifications You must be signed in to change notification settings

tensorush/zig-backoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);