Fork me on GitHub
#core-async
<
2015-10-24
>
Alex Miller (Clojure team)00:10:58

Well that's not going to work out

Alex Miller (Clojure team)00:10:38

As the 0.2.x release is imminent pending some testing

Alex Miller (Clojure team)00:10:32

I'm fine with the ns change but would defer to David and Rich on a final decision and timing

reefersleep17:10:10

Hey peeps. I'm kind of stuck doing a Reagent application with a little bit of core async mixe in. I create a channel in my namespace using (def input-buffer (chan 1)), then, :onclick for a button, I do #(let [input-char (-> (sel1 ".char-input") .-value)] (go (>! input-buffer input-char))) , and then, inside a loop scope, I do (assoc cells cell-pointer (int (go <! (go (<! input-chan)))))

reefersleep17:10:36

But I can't get it to work - the return value from reading the chan is ignored it seems.

reefersleep17:10:53

I do the "go <!" part twice because I read that the first <! just returns a chan, and not the value on the chan

reefersleep17:10:09

Doing it just once does not work either

reefersleep17:10:23

Sorry, that's just inside a function body, not a loop - the point is I want to return a value, and I can't figure out how to get it out of the go block 😕