missionary 2025-02-11

i am trying to wrap my head around missionary. in the simplest form i issue an http/get request and then do something with the result (body). i feel like i have to use m/reactor and m/ap, but i'm struggling to shape it into a workable code.

an http get is more of a task than a flow. The https://github.com/leonoel/task explains the nitty gritty details of tasks if you're interested. It ends with a task wrapper implementation for clj-http's get request. With that wrapper you can do something with the body like

(m/sp
  (let [ret (m/? (http-get "..."))]
    (prn (:body ret))))