#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

#1474 in Asynchronous

Download history 721/week @ 2023-11-29 641/week @ 2023-12-06 633/week @ 2023-12-13 428/week @ 2023-12-20 244/week @ 2023-12-27 458/week @ 2024-01-03 359/week @ 2024-01-10 418/week @ 2024-01-17 633/week @ 2024-01-24 1190/week @ 2024-01-31 1046/week @ 2024-02-07 943/week @ 2024-02-14 801/week @ 2024-02-21 581/week @ 2024-02-28 836/week @ 2024-03-06 529/week @ 2024-03-13

2,844 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