Results for “Std.Concurrent.Retry.Policy”
8 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Concurrent.Retry.Policy
How often to try and how long to wait between tries. The wait before
- Std.Concurrent.Retry.ceiling
&Std.Concurrent.Retry.Policy -> Int -> IntThe wait before retry
retry, before jitter. It multiplies only while the - Std.Concurrent.Retry.delay
&Std.Concurrent.Retry.Policy -> Int -> &Std.Random.Generator -> (Std.Random.Generator, Int)The jittered wait before retry
retry, and the generator to draw from next. - Std.Concurrent.Retry.run
&Std.Concurrent.Retry.Policy -> fn(Int) -> Result[T, E] -> Result[T, Std.Concurrent.Retry.RetryError[E]]Run
actionuntil it succeeds or the attempts run out, retrying every - Std.Concurrent.Retry.runCancellable
&Std.Concurrent.Retry.Policy -> &Std.Concurrent.Cancel.Token -> fn(E) -> Bool -> fn(Int) -> Result[T, E] -> Result[T, Std.Concurrent.Retry.RetryError[E]]runWhen, stopping when the token fires: before each attempt and during - Std.Concurrent.Retry.runWhen
&Std.Concurrent.Retry.Policy -> fn(E) -> Bool -> fn(Int) -> Result[T, E] -> Result[T, Std.Concurrent.Retry.RetryError[E]]run, retrying only the failuresretryableaccepts; any other failure - Std.Concurrent.Retry.standard
Std.Concurrent.Retry.PolicyFive attempts, waiting from 100 ms and doubling up to 10 s, fully jittered.
- Std.Concurrent.Retry.validate
&Std.Concurrent.Retry.Policy -> Result[(), Str]Why a policy cannot be followed, checked before any attempt.
