Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1816a43f14 |
@@ -10,7 +10,7 @@
|
||||
(loop [iteration 1]
|
||||
(command)
|
||||
(when (or (nil? max) (< max 0) (and max (< iteration max)))
|
||||
(Thread/sleep (* 1000 interval))
|
||||
(Thread/sleep ^long (* 1000 interval))
|
||||
(recur (inc iteration))))))
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
|
||||
(comment
|
||||
(time (run-every (fn [] (println "Hello")) 2 3))
|
||||
(time (run-every (fn [] (println "Hello")) 2))
|
||||
;;(time (run-every (fn [] (println "Hello")) 2)) ;; Runs forever
|
||||
(time (run-every-non-blocking (fn [] (println "Hello")) 2 3))
|
||||
)
|
||||
Reference in New Issue
Block a user