Closed DjebbZ closed 6 years ago
Hum... defsc
just worked... Maybe it's unrelated to core.async... No idea where this objects
symbol come from
@DjebbZ can you investigate towards a minimal repro please? :)
The utlra-minimal repository I test doesn't show any bugs, so it may be something specific to the closed-source app I'm developing. May be hard to reproduce then...
In the meantime, here's the code of the ultra-minimal repro I created :
(defn bug?
"I don't do a whole lot ... yet."
[& args]
(let [ch (as/chan 1)
easy-to-spy {:a 1 :b 2}]
(as/put! ch 1)
(as/go
(sc/spy (println "In chan:" (as/<! ch))))))
@DjebbZ All right, since we haven't established that the problem has something to do core.async, I'll close this issue so as not to mislead people. Feel free to re-open one if you make progress.
Hello,
I only use
letsc
anddefsc
, and noticed that when some code isspy
ed inside ago
block from core.async,defsc
doesn't work and fails with this strange error :letsc
works fine. I suppose it's because of the big code rewriting that core.async does. I'm not sure if it's a bug. Just reporting.