Expand description
A crate allowing for repeated retry of a function until it either reports success, fails with an error, or times out.
Functionsยง
- wait_
for - Wait until an operation yields a result or a timeout is reached,
polling every
interval
. On success the function returnsOk(Some(T))
. Whentimeout
is exceeded without a result being produced the return value isOk(None)
. Errors reported by the operation in question result in early return withErr(E)
. - wait_
until - Wait until an operation yields a result or a deadline is reached,
polling every
interval
. On success the function returnsOk(Some(T))
. Whendeadline
is reached without a result being produced the return value isOk(None)
. Errors reported by the operation in question result in early return withErr(E)
.