Skip to content

Instantly share code, notes, and snippets.

@sander
Last active September 25, 2015 07:48
Show Gist options
  • Select an option

  • Save sander/6a73300837560df0cd54 to your computer and use it in GitHub Desktop.

Select an option

Save sander/6a73300837560df0cd54 to your computer and use it in GitHub Desktop.
cljs error
(start
[{:keys [control log writings spec] :as this}]
(go (>! log :started) ;; this is line 58
(loop [[conn stop-conn] (connect this)
[disconnect disconnected] nil]
(match (async/alts! (filter some? [control conn disconnected writings]))
[:stop control] (do (>! log :stopped)
(when disconnect (disconnect))
(when stop-conn (stop-conn)))
[nil conn] (recur (connect this) nil)
[_ disconnected] (recur (connect this) nil)
[thing conn] (recur nil (setup this thing))
[v writings] (do (. writeStringCharacteristic
(:service-uuid spec) (:write-char spec) v)
(recur [conn stop-conn] [disconnect disconnected])))))
this)
Caused by: clojure.lang.ExceptionInfo: Don't know how to create ISeq from: clojure.lang.K
eyword at line 58 src/nl/sanderdijkhuis/device.cljs {:file "src/nl/sanderdijkhuis/device.
cljs", :line 58, :column 5, :tag :cljs/analysis-error}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment