Registry / Framework

framework · v0.1.0
Sandpiper
Schedule a deterministic redelivery after both lease expiry and retry backoff.
Use Sandpiper
use vendor::sandpiper::sandpiper;
Run the example
nest demo sandpiper@0.1.0
blyxc native-run sandpiper-demo/main.blyx
Example source and expected output
use vendor::sandpiper::sandpiper;
fn main() {
let issued = 10.0;
let ttl = 8.0;
let now = 19.0;
let base = 2.0;
let ceiling = 16.0;
let attempt = 1.0;
let result = sandpiper_redeliver(issued, ttl, now, base, ceiling, attempt);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
0
3
4
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | f5b6ff7845 | eb4250e091ce0f64aa0bb34e2bafb60d06f5b1d564872dad66cce7c6648c70d3 |