I want to call a function every second.
I have the following code:
(defn dostuff []
(do
(print "I'm doing stuff")
...))
(while true
(Thread/sleep 1000)
(dostuff))
I would expect this to print "I'm doing stuff" every second but it does not.
How do I achieve this?