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

Поділитися
Вставка
  • Опубліковано 22 сер 2024
  • 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-t...
    DISCORD: / discord
    GITHUB: github.com/Swi...
    SAY THANKS: www.buymeacoff...

КОМЕНТАРІ • 34

  • @3ilz
    @3ilz 2 роки тому +15

    The fact that you are giving this content away for free on UA-cam is amazing! This was an awesome video, didn't know what non isolated was before this

  • @raymondcordero9718
    @raymondcordero9718 7 місяців тому +1

    Awesome video. Best explanation I’ve seen so far for when to use Actors 🙌🏻

  • @satyadodda2386
    @satyadodda2386 Рік тому +2

    This was amazing.Please post more videos on swift and swiftUI🥺

  • @bhuwin6186
    @bhuwin6186 Рік тому +1

    Best swift tutorials ever

  • @andresraigoza2082
    @andresraigoza2082 2 роки тому +6

    So valuable content. Thank you so much Nick!!! you are a great teacher

  • @peterwolf2657
    @peterwolf2657 2 роки тому +4

    Again a nice and easy to understand video. I'm looking forward to the next one.

  • @josemanuelortizsanchez4983
    @josemanuelortizsanchez4983 Рік тому +1

    Good explication of no isolated and example of differences between actors and classes, thanks!

  • @bruhmoment3731
    @bruhmoment3731 2 роки тому +1

    Excellent tutorials. I really wanna watch the last 3 videos in this playlist now!

  • @navikaushal1795
    @navikaushal1795 21 день тому

    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?

  • @hao-bz
    @hao-bz Місяць тому

    Amazing, just learned something new today. Thanks for teaching us!

  • @alexvaiman4966
    @alexvaiman4966 6 місяців тому

    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.

  • @AndyJMacLeod
    @AndyJMacLeod 23 дні тому

    19:01 Start of discussion about actors.

  • @mafiaboy16
    @mafiaboy16 11 місяців тому

    Hi Nick, this was the one i was looking for. Thanks for everything

  • @nizamitagiyev705
    @nizamitagiyev705 2 роки тому

    Great explanation! Thank you Nick

  • @kyunghwankim1269
    @kyunghwankim1269 4 місяці тому

    Wonderful! Thank you 😆

  • @rooo2000
    @rooo2000 7 місяців тому

    very nice explanation

  • @DannyKerbel
    @DannyKerbel Рік тому +1

    I know this wasn't the point of the video but the lock.async closure should have a weak reference to self right?

  • @user-rs3pf3bt7m
    @user-rs3pf3bt7m Рік тому

    Bravo man

  • @bonifacy9511
    @bonifacy9511 Рік тому

    You are the best!!❤

  • @nickfloussov185
    @nickfloussov185 8 місяців тому

    Video is great, but Nick forgot to mention that 'Thread Sanitizer' option is NOT available for ALL devices

  • @indomitabletr1834
    @indomitabletr1834 Рік тому

    awsome as always

  • @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

  • @vebbis5961
    @vebbis5961 Рік тому

    Good explenation. Thank you!

  • @visskiss
    @visskiss Рік тому

    Nice. Now use combine to publish the string automagically by subscribing to the timer and mapping it...

  • @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

  • @tomblah
    @tomblah 2 місяці тому

    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?

  • @daminsamson204
    @daminsamson204 2 роки тому

    This is awesome 👏

  • @lizakryshkovskaya7412
    @lizakryshkovskaya7412 Рік тому

    thanks a lot!😍

  • @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?

  • @matanshaumberg9268
    @matanshaumberg9268 10 місяців тому

    Hi, thanks for the video! Where can the code in the videos be found?

  • @HUNTELAAR11W
    @HUNTELAAR11W 2 роки тому

    Crazy content, do you also do mentoring?

  • @hashcat5721
    @hashcat5721 Рік тому

    In Xcode 14 we get an error as we should .