Skip to content

Commit d56082d

Browse files
committed
we only care if vthreads allowed and available.
1 parent 135ee8f commit d56082d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ IOC and vthread code.
167167
(defn- defparkingop-helper [op doc arglist body]
168168
(let [as (mapv #(list 'quote %) arglist)]
169169
(list `def (with-meta op {:arglists `(list ~as) :doc doc})
170-
(if (or dispatch/target-vthreads?
171-
(and dispatch/vthreads-available-and-allowed?
172-
(not clojure.core/*compile-files*)))
170+
(if dispatch/vthreads-available-and-allowed?
173171
(let [blockingop (-> op name (str "!") symbol)]
174172
`(fn [~'& ~'args] ~(list* apply blockingop '[args])))
175173
`(fn ~arglist ~@body)))))

0 commit comments

Comments
 (0)