hyperfiddle

braai engineer 2025-11-09T12:59:53.919109Z

Given an async Missionary flow with (m/via m/blk ...), do I still need to use e/Offload when calling from Electric? I believe they are equivalent.

xificurC 2025-11-10T13:02:50.819639Z

if we talk strictly types, m/via returns a missionary task. One can bridge missionary tasks to Electric with (drumrolls..) e/Task

👍 1
Dustin Getz (Hyperfiddle) 2025-11-09T13:07:22.094859Z

yes e/Offload is implemented in terms of m/via, but there is some additional machinery they are not equivalent

Dustin Getz (Hyperfiddle) 2025-11-09T13:09:48.116339Z

one thing Electric programs need to consider, that a discrete missionary workflow may not, is what do to when the offloaded thunk needs to react to an upstream state change and re-evaluate. In particular, do you want to clear the previous state (given we are awaiting a new state), or do you want to latch the previous state while awaiting the new state