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 © 2023 MyPulse Ltd.
Distributed under the MIT license.