. is this something about agents+repl? or
something else i'm not grokking? many thanks for edification.
(defn new-animator []
(agent 0))
(def running true)
(def animation-sleep-ms 250)
(defn animation [i]
(when running
(send-off *agent* #'animation))
(print .)
(. Thread (sleep animation-sleep
,
i don't see the .s until i evaluate something afterwards; then they
get flushed to the console. is this something about agents+repl? or
something else i'm not grokking? many thanks for edification.
(defn new-animator []
(agent 0))
(def running true)
(def animation-sleep-ms 250)
(defn
to the console. is this something about agents+repl? or
something else i'm not grokking? many thanks for edification.
Try adding (flush) after your print. By default only newline
characters flush the output, so if you don't end your message with a
newline you have to flush manually.
Cheers,
mk
i don't see the .s until i evaluate something afterwards; then they
many thanks to all for the help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to