#timeout #retry #wait #poll

waitfor

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

1 unstable release

0.1.0 Oct 4, 2019

#1797 in Asynchronous

Download history 400/week @ 2024-07-26 563/week @ 2024-08-02 373/week @ 2024-08-09 629/week @ 2024-08-16 290/week @ 2024-08-23 368/week @ 2024-08-30 455/week @ 2024-09-06 424/week @ 2024-09-13 555/week @ 2024-09-20 613/week @ 2024-09-27 543/week @ 2024-10-04 599/week @ 2024-10-11 528/week @ 2024-10-18 331/week @ 2024-10-25 553/week @ 2024-11-01 709/week @ 2024-11-08

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