Liking cljdoc? Tell your friends :D

com.timezynk.useful.time


current-time-msclj

(current-time-ms)

Wraps System/currentTimeMillis to make it redef-able.

Wraps `System/currentTimeMillis` to make it `redef`-able.
raw docstring

exponential-backoff-intervalclj

(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.
raw docstring

sleep-padcljmacro

(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.
raw docstring

wait-tillcljmacro

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close