Dispatch Groups in Swift 5: iOS Concurrency (2020 Xcode 11, Swift 5)

Поділитися
Вставка
  • Опубліковано 22 сер 2024
  • In this video we will learn about dispatch groups in Swift 5 and Xcode 11 for iOS Development. Dispatch groups are great ways to aggregate concurrent operations and get notified when they all complete.
    #swift #iOSDeveloper #dispatchgroup
    Join the iOS Academy Community: iosacademy.io/
    ** Get Skillshare free for 2 Months and learn iOS
    www.skillshare...
    ** Manage all your investments from app earnings on Betterment!
    bit.ly/3eBwlI9
    ** Grow your own UA-cam tech channel with TubeBuddy:
    www.tubebuddy....

КОМЕНТАРІ • 45

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

    Quick, simple and practical example. Just what tutorials should be. Thank you!

  • @MuhammadAhmed-jm7nj
    @MuhammadAhmed-jm7nj 11 місяців тому

    Implemented this in real life project, thanks for doing this ❤

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

    Awesome video as always! Please do a video on OperationQueues. And possibly a video on optimizing scrolling for tableViews (ex: preFetchRowAt, caching data, cancel loading if you scroll passed cell)

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

    Bro, it is cool that you make useful content, but it is very difficult to perceive it due to zooming. I think if you record a video with good quality and slightly increase the font in the SDK, it will be much more comfortable to watch

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

    I think about case when first asyncAfter completes before second call "group.enter()". Then "group.notify" will be called before completing all operations.

  • @vincentjoyhere
    @vincentjoyhere 3 роки тому +1

    You are really good at this man. Thanks for doing this. :)

  • @sivakrishna5293
    @sivakrishna5293 3 роки тому +1

    Simple and clean.

  • @rudolphhock1155
    @rudolphhock1155 3 роки тому +1

    3:24 : nice trick !

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

    Amazing explanation. Thank you!

  • @debdutsaha4316
    @debdutsaha4316 3 роки тому +1

    I am very very much pleased with you tutorial

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

    Absolutely awesome content.

  • @christostsangaris4785
    @christostsangaris4785 4 роки тому +1

    @iOS Academy, any chance you illustrate how to cache data fetched by a network call (eg Firebase) to use on multiple ViewControllers?? Thanks!!

  • @jacklee1750
    @jacklee1750 4 роки тому +1

    Amazing video as always! Keep it up!

    • @iOSAcademy
      @iOSAcademy  4 роки тому

      Thanks! Make sure to subscribe!

  • @ernestorh6110
    @ernestorh6110 4 роки тому +1

    You 're the best. Thanks!

  • @roushilsingla6325
    @roushilsingla6325 4 роки тому +1

    Nice explanation. Thanks!

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

    When would we use this vs utilizing combine?

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

    I hope you don’t mind suggestions. I want to get out of the tutorial wheel so I just need more on mvvm and what Apple looks for in code. I wanted to ask wwdc questions about WatchOS permissions. That kind of thing. The App Store is a hot topic after the mail app controversy. Thanks as always.

    • @iOSAcademy
      @iOSAcademy  4 роки тому +3

      I love getting these suggestions! Mvvm is upcoming, wwdc stuff is great too, & that mail app controversy would be a real interesting rant video haha

    • @chatsnoirblamo
      @chatsnoirblamo 4 роки тому

      iOS Academy I look forward to seeing it any of those and more. Your code is nice.

  • @dev_jeongdaeri
    @dev_jeongdaeri 4 роки тому +1

    You are super cool! 🤩👍👍👍

    • @iOSAcademy
      @iOSAcademy  4 роки тому

      thanks! Make sure to sub :)

  • @mak_whisk
    @mak_whisk 3 роки тому +1

    Thank you)

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

    I am trying to fetch users from a list of dictionaries (stored in firebase) and append them IN ORDER to a list of users. How would you reccomend going about this? Love the video, and appreciate the hard work for the ios community!

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

      Wouldn't simple for loop does what you want? You can say like "for (user, userData) in users { self.users.append(user) }" something like that

  • @pratikgajbhiye5354
    @pratikgajbhiye5354 4 роки тому +1

    Incredible ❤️❤️❤️

  • @Cronay
    @Cronay 3 роки тому

    Thanks.

  • @asadgillani5540
    @asadgillani5540 4 роки тому +1

    Start a series like Uber App if you can please

  • @ibrahimmogedami4147
    @ibrahimmogedami4147 4 роки тому

    what's the difference between DispatchQueue.main & DispatchQueue.global ... i'm try it with the example but nearly the are the same

    • @iOSAcademy
      @iOSAcademy  4 роки тому +1

      main thread (UI) and background work

    • @ibrahimmogedami4147
      @ibrahimmogedami4147 4 роки тому

      @@iOSAcademy OK . I understood from the next video , thank you for your great effort

  • @hbwdino
    @hbwdino 4 роки тому

    If we remove defer.. what would happened?

    • @iOSAcademy
      @iOSAcademy  4 роки тому

      Nothing, defer is good practice for scope dropping

  • @ozgurshow
    @ozgurshow 3 роки тому

    please stop sick zoom