logoalt Hacker News

nbardytoday at 9:09 AM2 repliesview on HN

Seems like wrapping async await functions with CSP was a better way to handle this . Clojure already had a nicer pattern for this


Replies

embedding-shapetoday at 10:31 AM

You're still able to do so, as we've been able to in ClojureScript land for many years already, since ultimately they're just Promises! I don't think that's going away with this new function hints.

https://clojurescript.org/guides/promise-interop#using-promi...

midnight_eclairtoday at 9:15 AM

this release is about exposing the host language primitives to clojurescript

core.async isn't going anywhere, if async/await works better than promise based implementation, core.async will get an update in it's .cljs parts