Skip to content

Commit 4ef4b1e

Browse files
puredangerrichhickey
authored andcommitted
CLJ-2354 tunnel nil through tap>
Signed-off-by: Rich Hickey <[email protected]>
1 parent 131c5f7 commit 4ef4b1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/clj/clojure/core.clj

+3-2
Original file line numberDiff line numberDiff line change
@@ -7807,11 +7807,12 @@
78077807
false if not (dropped)."
78087808
{:added "1.10"}
78097809
[x]
7810-
(.offer tapq x))
7810+
(.offer tapq (if (nil? x) ::tap-nil x)))
78117811

78127812
(defonce ^:private tap-loop
78137813
(doto (Thread.
7814-
#(let [x (.take tapq)
7814+
#(let [t (.take tapq)
7815+
x (if (identical? ::tap-nil t) nil t)
78157816
taps @tapset]
78167817
(doseq [tap taps]
78177818
(try

0 commit comments

Comments
 (0)