Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 652 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 652 Bytes

awaitility-clj

Clojure wrapper for the Awaitility Java library.

Clojars Project

Examples

(: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

License

Copyright © 2023 MyPulse Ltd.

Distributed under the MIT license.