This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-13
Channels
- # adventofcode (35)
- # announcements (2)
- # arachne (1)
- # beginners (71)
- # chestnut (2)
- # cider (100)
- # cljdoc (17)
- # cljs-dev (17)
- # cljsjs (2)
- # cljsrn (2)
- # clojure (53)
- # clojure-austin (2)
- # clojure-europe (1)
- # clojure-finland (2)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-russia (56)
- # clojure-spec (56)
- # clojure-uk (35)
- # clojurescript (58)
- # community-development (14)
- # core-async (9)
- # cursive (22)
- # data-science (5)
- # datomic (14)
- # duct (5)
- # emacs (2)
- # expound (4)
- # figwheel-main (6)
- # fulcro (23)
- # kaocha (8)
- # lumo (7)
- # off-topic (10)
- # pathom (6)
- # re-frame (17)
- # reitit (31)
- # ring (3)
- # rum (1)
- # shadow-cljs (45)
- # spacemacs (10)
- # sql (12)
- # testing (9)
- # tools-deps (130)
Nice thread about data/graph/app/domain/API/ https://news.ycombinator.com/item?id=19147742
is there any way to force the reader in connect to return a sync value instead of a core.async channel? per the guidebook my parser config looks like:
{::p/env {::p/reader [p/map-reader
pc/parallel-reader
pc/open-ident-reader
p/env-placeholder-reader]
::p/placeholder-prefixes #{">"}}
::p/mutate pc/mutate
::p/plugins [(pc/connect-plugin {::pc/register (concat parser-mutations/mutations parser-queries/queries)})
p/error-handler-plugin
p/request-cache-plugin
p/trace-plugin]}))
@mss can you tell more about what you want with that in the end? the parallel-parser
will always return a channel given it uses a lot of core.async for coordination, if you want to run sync operations then you should use the regular parser, and use pc/reader2
instead of pc/parallel-reader
just playing around with the fulcro easy-server trying to glue it together to pathom. long term will be rolling my own server and the async mode is fine. just wasn’t clear in the dev guide how exactly to return a non core-async channel from the parser. all good, thanks!
you can also just wrap the parser and make a core async block read, this way you make it sync
example:
(def sync-parser [env tx]
(clojure.core.async/<!! (real-parser env tx)))