I'm trying to use cljs.core.async to convert async code to synchronous,
I've hit a problem chaining some calls. I'm getting a runtime state machine
problem, here is a test case for the issue:
(defn td [id t]
> (let [c (chan)]
> (window/setTimeout (fn [] (go (>! c (name id t)
> c
>
Thanks Tassilo,
As you point out, if I move the nested function outside the go then the
problem is fixed.
This test case is only a simplification of the original code so I can't do
this in my actual code however after much head scratching I now understand
the purpose of take! and it addresses
I've updated to 0.0-1586 build #22 from a much older release: 0.0-1450
I'm now geting a problem with (js->clj token) not converting the object
I don't think the problem is with js->clj:
(println (expose token true)) gives:
access_token = ya29.AHES6ZSgnk3Ws5bB-2aDx41Bbr335hKugjZJfcNAs83d121S306f