Hi all! This is more of a manifold
question, but I'll ask this here: are there easy ways to transform a deferred to a core.async promise channel? after quick read through docs all interfacing with core.async happens through streams.
I think you have to go through streams or create something yourself, like:
(defn deferred->chan [d] (let [c (async/chan)] (d/on-realized d #(async/put! c [:value %]) #(async/put! c [:error %])) c))
you can use an async/promise-chan for extra points
saves some resources too