Liking cljdoc? Tell your friends :D

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 © 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 is a website building & hosting documentation for Clojure/Script libraries

× close