This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
hello folks, its on master! parallel processing on Pathom 3 😄
This is a big milestone and I'm very excited about it!
I'm gonna play for a few days with it before cutting a release, but anyone wanting to try its on master now!
To play with it, you should use the async runner (from [com.wsscode.pathom3.interface.async.eql :as p.a.eql]
) and add ::p.a.eql/parallel? true
to your env, and you get the parallel runner!
One important thing to note, for things to go parallel you need resolvers that do async operations, if all resolvers are sync you wont get the benefit, the simplest way to make some expensive operation async is to wrap it with (p/future ...)
to make it run in another thread
but in CLJS this is natural, given IO operations are always async anyway
This is very cool! We’re playing around with it in our app and so far it’s working great.
New docs for parallel process in the website: https://pathom3.wsscode.com/docs/async/#parallel-process