funcool

2022-11-07T19:11:38.416179Z

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)

skylize 2022-11-07T20:41:25.199349Z

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

2022-11-07T22:02:42.813229Z

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

niwinz 2022-11-08T10:45:53.101219Z

glad to have a release on time hehe with pmap