Fork me on GitHub
#funcool
<
2022-11-07
>
jjttjj19:11:38

I keep wanting to do pmap with promesa. Is there a better way than this:

(->> xs
     (mapv (fn [x] (p/future (do-stuff x))))
     p/all)

skylize20:11:25

Announcement of new release this morning indicates this is being worked on. > Add pmap function (analogous to the clojure.core/pmap but a bit simplified and with the ability to set custom executor thanks to with-executor macro or clojure.core/binding) (also experimental). > https://clojurians.slack.com/archives/C06MAR553/p1667774881537649

jjttjj22:11:42

wow, I saw the announcment but must have missed the pmap line. Thanks!

niwinz10:11:53

glad to have a release on time hehe with pmap