File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/clojure/clojure/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ unset - default to ioc when aot, always
62
62
[clojure.core.async.impl.timers :as timers]
63
63
[clojure.core.async.impl.dispatch :as dispatch]
64
64
[clojure.core.async.impl.ioc-macros :as ioc]
65
- clojure.core.async.impl.go ; ; TODO: make conditional
66
65
[clojure.core.async.impl.mutex :as mutex]
67
66
)
68
67
(:import [java.util.concurrent.atomic AtomicLong]
@@ -72,6 +71,9 @@ unset - default to ioc when aot, always
72
71
73
72
(alias 'core 'clojure.core)
74
73
74
+ (if (not (or (dispatch/aot-vthreads? ) (dispatch/runtime-vthreads? )))
75
+ (require 'clojure.core.async.impl.go))
76
+
75
77
(set! *warn-on-reflection* false )
76
78
77
79
(defn fn-handler
@@ -513,7 +515,7 @@ unset - default to ioc when aot, always
513
515
[& body]
514
516
(if (or (dispatch/aot-vthreads? ) (dispatch/runtime-vthreads? ))
515
517
`(thread-call (^:once fn* [] ~@body) :io )
516
- (# 'clojure.core.async.impl.go/go-impl &env body)))
518
+ (( find-var 'clojure.core.async.impl.go/go-impl) &env body)))
517
519
518
520
(defonce ^:private thread-macro-executor nil )
519
521
You can’t perform that action at this time.
0 commit comments