hi Andrey, I think, javascript basically designed with event mechnism, especially IO api. The async/await api is cps transform with promise. async makes the function return promise, await make cps transform. in clojure, these may associate with core.async, I mean use channel replace promise.
On Monday, May 23, 2016 at 9:14:22 PM UTC+8, Andrey Antukh wrote: > > I'm not pretty sure if this answers your question, but I have similar > async/await syntax already implemented in promesa library: > http://funcool.github.io/promesa/latest/#async-await-syntax > > Regards. > Andrey > > On Mon, May 23, 2016 at 4:07 PM, Xiangtao Zhou <[email protected] > <javascript:>> wrote: > >> hi Everyone, >> >> es7 async/await makes javascript easily understandable, and avoid the >> callback hell. can clojure have one library like this? >> >> scala version is here https://github.com/scala/async. >> >> >> Thanks. >> >> Joe. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to [email protected] >> <javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Andrey Antukh - Андрей Антух - <[email protected] <javascript:>> > http://www.niwi.nz > https://github.com/niwinz > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
