Skip to content

mypulse-uk/awaitility-clj

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published