core-async

Roger Amorin Vieira 2019-06-03T23:09:29.002700Z

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.

2019-06-03T23:39:55.003700Z

you have to collect the channels and take from them all