Clojure wrapper for the Awaitility Java library.
(:require [awaitility-clj.core :refer [wait-for]])
(let [start-time (System/currentTimeMillis)
end-time (+ start-time 200)]
(wait-for {:at-most [1 :seconds]} ; options such as at-most and poll-interval
(fn [] (>= (System/currentTimeMillis) end-time)))) ; function that will eventually return true
Copyright © 2024 Jordan Robinson
Distributed under the MIT license.
Originally forked from the MyPulse awaitility-clj library, also MIT licensed.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |