(load-all-js-files files)
Returns a chanel with one collection of loaded filenames on it.
Source
(defn
load-all-js-files
"Returns a chanel with one collection of loaded filenames on it."
[files]
(let
[out (chan)]
(go-loop
[[f & fs] files]
(if-not
(nil? f)
(do (put! out (<! (reload-js-file f))) (recur fs))
(close! out)))
(async/into [] out)))