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)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
wow, I saw the announcment but must have missed the pmap line. Thanks!
glad to have a release on time hehe with pmap