Skip to content

Commit

Permalink
Fixing go->task macro
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Dec 19, 2024
1 parent 5330e73 commit 68565ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/clojure/clojure/core/async.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ to catch and handle."
[java.util.concurrent.locks Lock]
[java.util.concurrent Executors Executor ThreadLocalRandom]
[java.util Arrays ArrayList]
[clojure.lang Var]))
[clojure.lang Var]
[java.lang Thread$Builder]))

(alias 'core 'clojure.core)

Expand Down Expand Up @@ -491,7 +492,7 @@ to catch and handle."
(defmacro go
"Dispatches to task macro."
[& body]
`(task ~body))
`(task ~@body))

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

0 comments on commit 68565ca

Please sign in to comment.