Hello list.

It's funny topic and sounds bit strange, but I can't get success with 
chestnut-based project which uses (chan n some-trancducer). I always get an 
error in the browser colsole: Uncaught Error: Invalid arity: 2 async.cljs:45

It's fun, because when I use mies https://github.com/swannodette/mies with the 
same code, all works great. 

I'm trying code from there: https://github.com/cognitect/async-webinar
namely №6:

(defn ex6 []
  (let [button (by-id "ex6-button")
        clicks (events->chan button EventType.CLICK)
        mouse  (events->chan js/window EventType.MOUSEMOVE
                 (chan 1 (map mouse-loc->vec)))
        show!  (partial show! "ex6-messages")]
    (go
      (show! "Click button to start tracking the mouse!")
      (<! clicks)
      (set! (.-innerHTML button) "Stop!")
      (loop []
        (let [[v c] (alts! [mouse clicks])]
          (cond
            (= c clicks) (show! "Done!")
            :else
            (do
              (show! (pr-str v))
              (recur))))))))

(ex6)


May be I miss something in my project.clj but it compiles good - this is 
runtime exception...

Has anyone got success in such situation, if so could the minimal such setup be 
shared on github?

Thanks.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to