Demystifying Completion Handlers and Asynchronous Functions

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 34

  • @multitudes389
    @multitudes389 3 ปีที่แล้ว +11

    this is gold. This video will help lots of people. I loved to see all the steps to get to the @escaping keyword and also the tweaks at the end. 😀💯👍🏻

  • @franciscorius5978
    @franciscorius5978 2 ปีที่แล้ว

    Thanks for this. I spent 2 days trying to figure out a way to synchronize data with the UI and this was spot on.

  • @KimbrellBrad
    @KimbrellBrad 3 ปีที่แล้ว +4

    Some of the "Gold" here is that simple Log function that you have. Has to be very beneficial in tracking down problems! I plan to take that idea and run with it. If you have other tools that you have either built or found I am sure that your audience would appreciate a video on the use of those as well!
    All of the above aside, your explanation here is as clear as can be. Great ideas behind the modifications to that code. Thanks again for all that you do to support this community Stewart!

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      Thanks Brad. I appreciate the feedback.

  • @abdulwahabkhan4316
    @abdulwahabkhan4316 3 ปีที่แล้ว +1

    wow, I never knew that we can print file name, line number, and thread in consol ... thankx a lot Stewart :)

  • @Randor10
    @Randor10 3 ปีที่แล้ว

    As usual another great lesson. I still have to stop and re-watch a couple of times to get it straight in my head, but the examples are great to come back to for reference. Thanks again.

  • @rungxanh2901
    @rungxanh2901 3 ปีที่แล้ว

    I'm not 100% cleared of the concept yet, but the entire video and project files have helped me advance my understanding of async function by light years 🙏🏻

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      I am glad my videos are helping you move ahead then.

  • @jayp9158
    @jayp9158 2 ปีที่แล้ว

    Thanks for this. I'm not used to Swift, so this async behavior is super annoying for me but you managed to make it easy!

  • @陳柏翰-j8c
    @陳柏翰-j8c 2 ปีที่แล้ว

    I learn a lot ! great work ! Thanks 💯

    • @StewartLynch
      @StewartLynch  2 ปีที่แล้ว

      Glad I could help with your understanding.

  • @Mahadev-x7u
    @Mahadev-x7u 3 ปีที่แล้ว

    Thank you Stewart....

  • @TechRagh
    @TechRagh 3 ปีที่แล้ว

    Thanks Stewart ! 🙌🏼

  • @lmouhcine
    @lmouhcine 8 หลายเดือนก่อน

    Nice and clean

  • @hakeemdeggs9117
    @hakeemdeggs9117 ปีที่แล้ว

    Great video!!!

  • @link6705
    @link6705 3 ปีที่แล้ว

    Nice guide!

  • @nagarajvrao7249
    @nagarajvrao7249 3 ปีที่แล้ว

    Question on memory management:
    Suppose we are calling getStockInfo from a class (suppose in a VC/VM) do we need to weak self? I dont think we should, since the getStockInfo is a static method (there is no instance to form a retain cycle!)

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      I think I would have to see the context. Xcode will often let you know if it is required.

  • @greyabeing443
    @greyabeing443 3 ปีที่แล้ว

    can you create a playlist for swift programming without swiftui?

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      If you mean UIKit I am afraid you will have to look elsewhere. My focus is SwiftUI, but many of my videos do not deal with any UI and are Swift language related.

    • @greyabeing443
      @greyabeing443 3 ปีที่แล้ว

      @@StewartLynch No I meant if yould create a separate playlist of videos that deal with only the swift programming without using SwiftUI or UIKit?

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      So you mean swift language fundamentals. The problem is that I often start with a language concept and then apply it to a UI as a practical example.

    • @greyabeing443
      @greyabeing443 3 ปีที่แล้ว

      @@StewartLynch ok, lastly is there an order or is it random?

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      It is whatever I feel like putting out. I am not doing this for a living so if I find something I think I can share, I do. Lately, I have been tweeting with links to groups of videos that go together so perhaps, on my website I can create a page that might organize the videos a little better. You might also find this link helpful. I keep it up to date with all of my videos. www.notion.so/Stewart-Lynch-TH-cam-Videos-b8114bb08d57437f9e05facc40774184

  • @drmucahiderdogan
    @drmucahiderdogan 3 ปีที่แล้ว

    Great video as usual. Would you mind explaining dependency injection methods in a future video?

  • @mig12394
    @mig12394 3 ปีที่แล้ว

    Thanks very didactic

    • @StewartLynch
      @StewartLynch  3 ปีที่แล้ว

      Not sure what is morally instructive about this video, but I am glad you enjoyed it.

  • @cd78
    @cd78 3 ปีที่แล้ว

    So swift is not true multi thread then