Actors in Swift -

Опубликовано: 01 Январь 1970
на канале: Alexito's World
3,261
127

An introduction to the Actor model and Actors in #Swift.
Swift's concurrency features are still being developed and discussed so they are subject to change.
In this introduction I talk about the theory of the actor model. I show you how concurrent code with classes and shared state has problems and how actors solve it. Then I explain the main concepts of isolation and reentrancy, and finally I show you how cool this is gonna be thanks to the @MainActor protecting our UIKit interactions!

First look at async await and Swift Structured Concurrency
   • First look at async await - #Swift #C...  

SE-0306: Actors
https://github.com/apple/swift-evolut...

Hewitt, Meijer and Szyperski: The Actor Model (everything you wanted to know...)
   • Hewitt, Meijer and Szyperski: The Act...  

00:00 Introduction 👋
02:08 The Actor Model, theory time! 📄
09:02 The problem they solve 🚫
13:35 Actors in Swift ❤️
20:28 isolated vs. nonisolated 👤
22:57 Reentrancy ⚠️
27:14 The Main Actor 🎉
30:21 Conclusion 🤗

————————————————————­———————————
Web: https://alejandromp.com
Twitch:   / alejandromp4  
Twitter:   / alexito4