Effect CommunityEC
Effect Community3y ago
83 replies
imagio

Using STM for Coordinating values over time

@Michael Arnaldi after reading through some stuff about STM I see the value for coordination like you were saying (check, etc). I'm unclear about how I can use it in the broader context of my app however. For example right now I use SubscriptionRef because I frequently care about the current value of a piece of state and any changes to it. It's unclear to me how I can handle that while using STM for coordination. It almost seems like I need an "STMSubscriptionRef" type that emits a value to its stream on every commit. Thoughts?
Was this page helpful?