How to use Actors and non-isolated in Swift | Swift Concurrency #9
ฝัง
- เผยแพร่เมื่อ 22 พ.ค. 2022
- Actors are possibly the most important update to come out of Swift Concurrency! They are incredibly powerful and solve Data Race problems in our applications! This is crucially important when working in a multi-threaded environment! In this video we will learn:
1) The problem that Actors solve
2) How to solve the problem without Actors
3) How to solve the problem with Actors!
Next video: • How to use Global Acto...
Previous video: • Swift: Struct vs Class...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
The fact that you are giving this content away for free on TH-cam is amazing! This was an awesome video, didn't know what non isolated was before this
Amazing, just learned something new today. Thanks for teaching us!
Awesome video. Best explanation I’ve seen so far for when to use Actors 🙌🏻
Best swift tutorials ever
This was amazing.Please post more videos on swift and swiftUI🥺
Again a nice and easy to understand video. I'm looking forward to the next one.
So valuable content. Thank you so much Nick!!! you are a great teacher
Excellent tutorials. I really wanna watch the last 3 videos in this playlist now!
HI Nick
Can you please make a video on what are the different ways of designing a data manager class with their pros and cons?
Great explanation! Thank you Nick
Good explication of no isolated and example of differences between actors and classes, thanks!
Hi Nick, this was the one i was looking for. Thanks for everything
19:01 Start of discussion about actors.
You are the best!!❤
Good explenation. Thank you!
This is awesome 👏
Wonderful! Thank you 😆
awsome as always
thanks a lot as always~~~!!!
Video is great, but Nick forgot to mention that 'Thread Sanitizer' option is NOT available for ALL devices
Bravo man
thanks a lot!😍
very nice explanation
Thank you for all these swiftUI tutorials...I've seen almost all of them, I learned a lot and I hope you will take other courses....I'm curious what you think also about flutter and if you' have seen it, I noticed some similarities with SwiftUI
It's important to notice that we should use a serial queue, which is the default in Swift, but was not the case for Objective-C.
Hey Nick! great content! Can race conditions occur within the same class by using a task group? How to handle this?
Crazy content, do you also do mentoring?
Nice. Now use combine to publish the string automagically by subscribing to the timer and mapping it...
11:21 I'm probably misunderstanding, but is this really needed to do on a different background thread? Isn't it this doing it on a different background *queue*? And the queue will, under the hood, choose which thread to use?
Hi, thanks for the video! Where can the code in the videos be found?
Thanks! Just one question here:
1. How your code becomes threads safe when you add asynchronous queue ? I think there should be serial queue.
Could you please explain here? Thanks again for amazing videos
Ahh, I see default init for DespatchQueue returns serial queue
I know this wasn't the point of the video but the lock.async closure should have a weak reference to self right?
In Xcode 14 we get an error as we should .