IG
Size: a a a
IG
AC
AC
IG
IG
AC
IG
AC
AC
IG
with-thread, который принимает тело и возвращает экземпляр тредаIG
IG
(defmacro with-thread
[& body]
`(let [thread# (new Thread (fn [] ~@body))]
(.start thread#)
thread#))
(def t (with-thread (println 42)))
(.join t)
IG
TL
(defmacro with-thread
[& body]
`(let [thread# (new Thread (fn [] ~@body))]
(.start thread#)
thread#))
(def t (with-thread (println 42)))
(.join t)
TL
KC
KC
TL
TL
KC