Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Still trying to understand how binding / go blocks interact
(defn start-loop []
(binding [srh/*remote-uri* "/opnenablement/_shoreleave"]
(go (while true
(let [e (<! dirty_c)]
(dommy/set-text! out "SAVED!")
;;; this does not work, goes to /_shoreleave
;;; allmost regardless of where the (binding ... is
(srm/rpc (save-config "myConfig") [result]
:on-success (js/alert (str "Success: " result))
:on-error (js/alert (str "Error: " result)))
(alts! [save_c (timeout 2000)]))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.