Optimistic Subscription Update with STM
What's the best way to optimistically
update a subscription ref(i.e. perform an update, run a side effect and then revert the update if the effect fails).
I'm assuming a STM comes into play here to prevent values from updating while the side effect is running but what would this look like?
update a subscription ref(i.e. perform an update, run a side effect and then revert the update if the effect fails).
I'm assuming a STM comes into play here to prevent values from updating while the side effect is running but what would this look like?
