Fork me on GitHub
#clojurescript
<
2021-09-25
>
borkdude19:09:33

Has self-hosted CLJS been tested to work correctly in the presence of concurrent evaluations? E.g. when you evaluate behind a click handler or setTimeOut and evaluate code which loads a couple of overlapping namespaces "at the same time"? I don't have a bug, I just want to know if anyone has some details on this.

borkdude21:09:07

E.g. is this supposed to work/supported?

(js/setTimeout #(eval '(do (ns foo1) (defn foo []))) 1) 
(js/setTimeout #(eval '(do (ns foo2) (defn foo []))) 1)

borkdude21:09:47

I would be ok if it's not, I'm just trying to get information