#retry #timeout #poll #wait

waitfor

Retry a function until it succeeds, errors out, or a timeout/deadline is reached

1 unstable release

0.1.0 Oct 4, 2019

#1630 in Asynchronous

Download history 178/week @ 2024-03-24 480/week @ 2024-03-31 539/week @ 2024-04-07 588/week @ 2024-04-14 823/week @ 2024-04-21 607/week @ 2024-04-28 502/week @ 2024-05-05 487/week @ 2024-05-12 616/week @ 2024-05-19 395/week @ 2024-05-26 703/week @ 2024-06-02 398/week @ 2024-06-09 347/week @ 2024-06-16 633/week @ 2024-06-23 293/week @ 2024-06-30 327/week @ 2024-07-07

1,610 downloads per month

GPL-3.0-or-later

15KB
61 lines

pipeline crates.io Docs rustc

waitfor

waitfor is a crate allowing for retry of operations until a timeout or deadline is reached. If operation failed this failure is bubbled up directly.


lib.rs:

A crate allowing for repeated retry of a function until it either reports success, fails with an error, or times out.

No runtime deps