We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978348b commit fc40db6Copy full SHA for fc40db6
src/main/clojure/clojure/core/async.clj
@@ -516,7 +516,14 @@ IOC and vthread code.
516
(let [ret (impl/take! port (fn-handler nop false))]
517
(when ret @ret)))
518
519
-(defn- dynamic-require [nsym]
+(defn- dynamic-require
520
+ "Like require but takes only a single namespace symbol and attempts to
521
+ require the namespace on a separate thread. This is done to start
522
+ with a fresh dynamic environment augmented only with the vars
523
+ needed by require to perform its job. If the namespace is
524
+ found to have already been loaded then this function will return
525
+ immediately."
526
+ [nsym]
527
(when (not (contains? @@#'clojure.core/*loaded-libs* nsym))
528
(let [p (promise)
529
n *ns*
0 commit comments