Skip to content

Commit fc40db6

Browse files
committed
docstring for d-r
1 parent 978348b commit fc40db6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

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

519-
(defn- dynamic-require [nsym]
519+
(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]
520527
(when (not (contains? @@#'clojure.core/*loaded-libs* nsym))
521528
(let [p (promise)
522529
n *ns*

0 commit comments

Comments
 (0)