Fork me on GitHub
#clojurescript
<
2022-01-17
>
Kurt Harriger02:01:28

question when using shadow-cljs repl and go blocks I often want to print result of an async function but since I can’t block I need to do something like (go (pprint (<! (get-some-data))) and this will print the result to the js/console but in the repl I only see #object[cljs.core.async.impl.channels.ManyToManyChannel] and thus I need to tab back and forth from browser… is there any way to get the repl to wait for go blocks or promises?

lsenjov02:01:45

My gut feeling is no. You might be able to replace the pprint with tap> and check it through the shadow-cljs console on localhost:9630?

lsenjov02:01:19

Otherwise it’d be a better question to ask in #shadow-cljs, since this is getting pretty deep into the internals of how shadow-cljs’ repl works

emak23:01:47

Did you know that ClojureScript only article on wikipedia is https://ru.wikipedia.org/wiki/ClojureScript language? Kudos to #clojure-russia 👏 And it barely exists on wikidata: https://www.wikidata.org/wiki/Q21659868 ClojureScript deserves better coverage!

👍 3