This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-09
Channels
- # announcements (20)
- # beginners (115)
- # calva (2)
- # clj-kondo (1)
- # clojure (48)
- # clojure-uk (21)
- # clojurescript (20)
- # css (1)
- # cursive (3)
- # datascript (11)
- # datomic (6)
- # duct (26)
- # emacs (5)
- # funcool (6)
- # off-topic (45)
- # perun (1)
- # precept (4)
- # quil (2)
- # re-frame (1)
- # shadow-cljs (251)
- # tools-deps (27)
- # uncomplicate (9)
what on earth happened to promesa between 1.9.0 and 5.1.0. Under current docs, I can find no reference to anything cljs - like async
ok, I see this was intentional. It escapes me looking at the current version how to get the value of a promise in cljs. What am I missing?
what do you want to do that for @hoppy? is the let
syntax insufficient - that seems to be new promesa's async/await equivalent (caveat: i haven't used the new promesa api, I'm still on the old api, and mostly consuming that via funcool/cats too)
@mccraigmccraig - I guess I'm looking for a way to get the gumball out at the end of a promise chain. This might be contrary to how things work in jsland, and a barrier I need to get past mentally
@mccraigmccraig ok, slowly getting the hang of this - thanks for putting up with my griping
you can stuff values into an atom or print @hoppy... there may also be an underlying js api that will let you examine the current value of a promise without blocking, dunno, haven't looked