Unconventional Shapes #1 - Actors with AsyncSequences
#SwiftUI apps use threads for UI, model and network. This can glitch and crash. Should you cross your fingers, or add complex locks?
#Swift #Concurrency can help! Actors are a new way to code the data model in your swift App. Actor methods give safe async access to one value from the model's data.
What if you need more than one result, like streamed posts from the network?
Use #AsyncSequence! Here's today's Unconventional Shape:
Edited 2y ago