missionary

J 2024-03-18T08:07:05.341219Z

Hello! It’s recommended to call another task inside (m/via m/blk ...) like this?

(def app
  (m/sp
    (m/join vector (m/via m/blk (m/? (other-task)))
                   ...)))

leonoel 2024-03-18T13:44:45.778069Z

it is suboptimal, an OS thread will be blocked waiting for other-task to finish

xificurC 2024-03-18T13:54:50.083849Z

I think the question is given a task t how to offload it on a thread idiomatically

👍 1
J 2024-03-18T15:42:50.008079Z

So inside (m/via m/blk) only “pure clojure” (no missionary stuff) is recommended.

leonoel 2024-03-18T16:30:57.091069Z

yes, should be only for interop with blocking APIs