(current-time-ms)
Wraps System/currentTimeMillis
to make it redef
-able.
Wraps `System/currentTimeMillis` to make it `redef`-able.
(exponential-backoff-interval num-failures base-interval max-interval)
Length of time to wait for when following the EBO strategy.
Length of time to wait for when following the EBO strategy.
(sleep-pad min-duration min-sleep & body)
Makes body
last at least as long as min-duration
by sleeping after.
Measures min-duration
and min-sleep
in milliseconds.
Makes `body` last at least as long as `min-duration` by sleeping after. Measures `min-duration` and `min-sleep` in milliseconds.
(wait-till pred)
(wait-till pred interval max-attempts)
Puts the calling thread to sleep until pred
becomes true.
Wakes up to evaluate pred
every interval
(default 250) milliseconds.
Asserts failure after crossing the attempt threshold (default 5).
Intended for use within clojure.test
tests.
Puts the calling thread to sleep until `pred` becomes true. Wakes up to evaluate `pred` every `interval` (default 250) milliseconds. Asserts failure after crossing the attempt threshold (default 5). Intended for use within `clojure.test` tests.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close