Skip to content

Commit 68565ca

Browse files
committed
Fixing go->task macro
1 parent 5330e73 commit 68565ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/clojure/clojure/core/async.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ to catch and handle."
3535
[java.util.concurrent.locks Lock]
3636
[java.util.concurrent Executors Executor ThreadLocalRandom]
3737
[java.util Arrays ArrayList]
38-
[clojure.lang Var]))
38+
[clojure.lang Var]
39+
[java.lang Thread$Builder]))
3940

4041
(alias 'core 'clojure.core)
4142

@@ -491,7 +492,7 @@ to catch and handle."
491492
(defmacro go
492493
"Dispatches to task macro."
493494
[& body]
494-
`(task ~body))
495+
`(task ~@body))
495496

496497
(defonce ^:private ^Executor thread-macro-executor
497498
(Executors/newCachedThreadPool (conc/counted-thread-factory "async-thread-macro-%d" true)))

0 commit comments

Comments
 (0)