This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-26
Channels
- # babashka (12)
- # beginners (53)
- # cider (6)
- # clj-kondo (2)
- # cljdoc (18)
- # clojars (6)
- # clojure (72)
- # clojure-europe (27)
- # clojurescript (85)
- # component (2)
- # conjure (4)
- # datalevin (43)
- # graalvm (8)
- # hyperfiddle (17)
- # lsp (72)
- # malli (5)
- # off-topic (1)
- # pathom (6)
- # perun (6)
- # polylith (10)
- # releases (1)
- # shadow-cljs (30)
- # xtdb (10)
my actual use case right now: I want to interactively run some query selectors against my browser from a puppeteer
connection, where nearly every command returns a promise. so i want to run a selector and see the output, tweak it and look again, etc. so the faster i can do that loop the better
@david.w.ackerman You can use nbb.core/await for this :)
Also this project contains a REPL+promise friendly macro: https://github.com/borkdude/deflet#nbb
thank you, i didn't expect it to be in the base library of nbb! I guess since unwrapping the promise changes when the data is returned and is not just a pure transformation, it would have to be handled by the repl server instead of the client (i.e CIDER)?