missionary 2024-03-18

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)))
                   ...)))

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

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

👍 1

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

yes, should be only for interop with blocking APIs