Skip to content

Commit 7625fb0

Browse files
committed
req-fresh
1 parent 518f0fd commit 7625fb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ IOC and vthread code.
516516
(let [ret (impl/take! port (fn-handler nop false))]
517517
(when ret @ret)))
518518

519-
(defn- dynamic-require
519+
(defn- require-fresh
520520
"Like require but takes only a single namespace symbol and attempts to
521521
require the namespace on a separate thread. This is done to start
522522
with a fresh dynamic environment augmented only with the vars
@@ -560,7 +560,7 @@ IOC and vthread code.
560560
completed"
561561
[& body]
562562
(if go-becomes-ioc?
563-
(do (dynamic-require 'clojure.core.async.impl.go)
563+
(do (require-fresh 'clojure.core.async.impl.go)
564564
((find-var 'clojure.core.async.impl.go/go-impl) &env body))
565565
`(do ~(when clojure.core/*compile-files*
566566
`(dispatch/ensure-runtime-vthreads!))

0 commit comments

Comments
 (0)