Fork me on GitHub
#core-async
<
2019-06-03
>
Roger Amorin Vieira23:06:29

Hey how do I wait a GO block finish. (Its a bad example, but is like that:)

(defn function-with-recur-and-go
     [x]
     (if (< x 100)
         (async/go
              (println x))
         (recur (inc x))))
And I need to know when all go ends to start other thing.

hiredman23:06:55

you have to collect the channels and take from them all