How to use Actors and non-isolated in Swift | Swift Concurrency #9

  Рет қаралды 18,531

Swiftful Thinking

Swiftful Thinking

2 жыл бұрын

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

Пікірлер: 33
@3ilz
@3ilz Жыл бұрын
The fact that you are giving this content away for free on KZfaq is amazing! This was an awesome video, didn't know what non isolated was before this
@bruhmoment3731
@bruhmoment3731 2 жыл бұрын
Excellent tutorials. I really wanna watch the last 3 videos in this playlist now!
@peterwolf2657
@peterwolf2657 2 жыл бұрын
Again a nice and easy to understand video. I'm looking forward to the next one.
@andresraigoza2082
@andresraigoza2082 2 жыл бұрын
So valuable content. Thank you so much Nick!!! you are a great teacher
@josemanuelortizsanchez4983
@josemanuelortizsanchez4983 Жыл бұрын
Good explication of no isolated and example of differences between actors and classes, thanks!
@raymondcordero9718
@raymondcordero9718 6 ай бұрын
Awesome video. Best explanation I’ve seen so far for when to use Actors 🙌🏻
@satyadodda2386
@satyadodda2386 Жыл бұрын
This was amazing.Please post more videos on swift and swiftUI🥺
@bhuwin6186
@bhuwin6186 Жыл бұрын
Best swift tutorials ever
@nizamitagiyev705
@nizamitagiyev705 2 жыл бұрын
Great explanation! Thank you Nick
@hao-bz
@hao-bz Ай бұрын
Amazing, just learned something new today. Thanks for teaching us!
@mafiaboy16
@mafiaboy16 11 ай бұрын
Hi Nick, this was the one i was looking for. Thanks for everything
@AndyJMacLeod
@AndyJMacLeod 21 сағат бұрын
19:01 Start of discussion about actors.
@JackSparrow-ob8kf
@JackSparrow-ob8kf Жыл бұрын
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
@vebbis5961
@vebbis5961 Жыл бұрын
Good explenation. Thank you!
@kyunghwankim1269
@kyunghwankim1269 3 ай бұрын
Wonderful! Thank you 😆
@bonifacy9511
@bonifacy9511 Жыл бұрын
You are the best!!❤
@daminsamson204
@daminsamson204 2 жыл бұрын
This is awesome 👏
@indomitabletr1834
@indomitabletr1834 Жыл бұрын
awsome as always
@user-eg7ep8db8j
@user-eg7ep8db8j 2 жыл бұрын
thanks a lot as always~~~!!!
@federicoramos
@federicoramos Жыл бұрын
Hey Nick! great content! Can race conditions occur within the same class by using a task group? How to handle this?
@lizakryshkovskaya7412
@lizakryshkovskaya7412 Жыл бұрын
thanks a lot!😍
@rooo2000
@rooo2000 6 ай бұрын
very nice explanation
@user-rs3pf3bt7m
@user-rs3pf3bt7m Жыл бұрын
Bravo man
@alexvaiman4966
@alexvaiman4966 5 ай бұрын
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.
@nickfloussov185
@nickfloussov185 8 ай бұрын
Video is great, but Nick forgot to mention that 'Thread Sanitizer' option is NOT available for ALL devices
@matanshaumberg9268
@matanshaumberg9268 10 ай бұрын
Hi, thanks for the video! Where can the code in the videos be found?
@tomblah
@tomblah Ай бұрын
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?
@HUNTELAAR11W
@HUNTELAAR11W 2 жыл бұрын
Crazy content, do you also do mentoring?
@visskiss
@visskiss Жыл бұрын
Nice. Now use combine to publish the string automagically by subscribing to the timer and mapping it...
@DannyKerbel
@DannyKerbel Жыл бұрын
I know this wasn't the point of the video but the lock.async closure should have a weak reference to self right?
@nverabgaryan
@nverabgaryan 6 ай бұрын
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
@nverabgaryan
@nverabgaryan 6 ай бұрын
Ahh, I see default init for DespatchQueue returns serial queue
@hashcat5721
@hashcat5721 Жыл бұрын
In Xcode 14 we get an error as we should .
How to use Global Actors in Swift (@globalActor) | Swift Concurrency #10
23:50
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 60 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 37 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 12 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 35 МЛН
Илья Чикмарев - async/await в Swift
29:19
CocoaHeads
Рет қаралды 11 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 330 М.
What is the Sendable protocol in Swift? | Swift Concurrency #11
17:09
Swiftful Thinking
Рет қаралды 11 М.
Your Brain 🧠 on Swift Concurrency - iOS Conf SG 2023
30:38
iOS Conf SG
Рет қаралды 8 М.
SwiftUI API / JSON Tutorial with Async Await Example
9:52
Logan Koshenka
Рет қаралды 24 М.
How to use Dependency Injection in SwiftUI | Advanced Learning #16
35:32
Swiftful Thinking
Рет қаралды 27 М.
Concurrency in Go
18:40
Jake Wright
Рет қаралды 610 М.
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 60 МЛН