So a quick question:
Lets say I have a system which vends me an AsyncStream. I want to listen to that in my ViewModel, map the result and assign it to my state variable. What is the best way to do that? I am currently spinning up a Task, but wondering whether there is a better tool.
Lets say I have a system which vends me an AsyncStream. I want to listen to that in my ViewModel, map the result and assign it to my state variable. What is the best way to do that? I am currently spinning up a Task, but wondering whether there is a better tool.
Comments
(I don’t have much SwiftUI experience though so unsure if there are alternatives…)