, , (java.lang.Runnable ). reify.
(reify java.lang.Runnable
(run [this]
(try
(Thread/sleep RECORD_TIME))
(catch InterruptedException e
(.printStackTrace e))))))
Of course, if you just want to execute a set of expressions in a separate thread that you want to use, for example. (future), as mentioned above by roberman.
source
share