Handbook
Glossary
retry-sleep-time ( retries time-strategy -- nanos/timestamp/0 )
Vocabulary
retries
Inputs
retries
an
object
time-strategy
an
object
Outputs
nanos/timestamp/0
an
object
Definition
IN:
retries
GENERIC:
retry-sleep-time
( retries time-strategy -- nanos/timestamp/0 )
Methods
USING:
accessors
kernel
math
math.functions
retries
;
M:
exponential-wait
retry-sleep-time
[
count>>
]
[
[
exp>>
^
]
[
nanos>>
*
]
bi
]
bi*
;
USING:
kernel
retries
;
M:
immediate
retry-sleep-time
2drop
0
;
USING:
accessors
kernel
random
ranges
retries
;
M:
random-wait
retry-sleep-time
nip
[
lo>>
]
[
hi>>
]
bi
[a..b]
random
;