Skip to content

Commit

Permalink
Add type hint to Thread/sleep in do-every macro
Browse files Browse the repository at this point in the history
Caused by recent versions of Java allowing Thread/sleep to be called
with a Duration instance. Fixes #498.
  • Loading branch information
weavejester committed Mar 9, 2024
1 parent f7e66aa commit 4778c7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(defmacro ^{:private true} do-every [delay & body]
`(background-thread
#(while true
(Thread/sleep (* ~delay 1000))
(Thread/sleep ~(with-meta `(* ~delay 1000) {:tag 'long}))
(try ~@body
(catch Exception ex#)))))

Expand Down

0 comments on commit 4778c7c

Please sign in to comment.