Welcome! Please see the About page for a little more info on how this works.
Title says it all.
Comment made by: johanatan
Actually, my code is a bit more complicated:
` (defn func [] (go
`
(let [...] (for [[a b c d] e] (let [...] (when pred (let [val (<! ...)] ...)))))))
Comment made by: bronsa
You cannot user for inside a go block
for
The for cannot appear anywhere inside a go? Or the for cannot contain inside it any async calls; i.e., is it ok for for to appear somewhere in the let binding as a sibling to a call to <!?
go
You can't use <! inside a for inside a go block, code like this OTOH should be valud:
<!
` (go (let [.. (for [..] ..)]
(<! ..)))
Ahh, perfect! Thx!