Fork me on GitHub
#core-async
<
2018-09-10
>
fmn13:09:09

Hi, if I have a function like this:

(defn fetch-data
  [url]
  (let [chan (a/chan)]
    (get-request! url {:handler (fn [response]
                                  (a/put! chan response))})
    chan))
Does it create a "lingering" channel each time I call it?

Alex Miller (Clojure team)13:09:20

if no one is using the chan, it should be garbage collected

fmn13:09:05

Thank you!