Skip to content

Commit 7cc715a

Browse files
committed
In channel datafy, include the chan in meta under :clojure.datafy/obj
1 parent 58ccbff commit 7cc715a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

+7-5
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,10 @@
309309
ManyToManyChannel
310310
(datafy [c]
311311
(let [b (.buf c)]
312-
(cond->
313-
{:put-count (count (.puts c))
314-
:take-count (count (.takes c))
315-
:closed? (impl/closed? c)}
316-
b (assoc :buffer (clojure.datafy/datafy b))))))
312+
(with-meta
313+
(cond->
314+
{:put-count (count (.puts c))
315+
:take-count (count (.takes c))
316+
:closed? (impl/closed? c)}
317+
b (assoc :buffer (datafy/datafy b)))
318+
{::datafy/obj c}))))

0 commit comments

Comments
 (0)