Multithreading & Async in iOS | A Basic Introduction

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

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

  • @johncarson3333
    @johncarson3333 4 ปีที่แล้ว +2

    Dude I was lost in the sauce with dispatch queue and that was a super legit explanation thank you

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

    Thank you for your detailed and clear explanation, it was very helpful and understandable.

  • @OlegK-h6x
    @OlegK-h6x 3 ปีที่แล้ว

    Понятное объяснение. Спасибо!

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

    Hello Sam, great video! I understand more on DispatchQueue now thanks! I do have a question for you about this subject. I was wondering if I may ask you for some help please? thanks again for making this video and hope to hear from you soon

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

    What is the difference between sync vs async?

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

      One is synchronous and the other is asynchronous 🤣

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

      print("a")
      backgroundQueue.async {
      print("b")
      }
      print("c")
      The short answer is: the order that these will be printed out is a, c, b. If you change async to sync, the order will be a, b, c. Even though print("b") happens on a different queue, the main queue will still wait for it to complete if we use a sync block. sync is not usually desirable.

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

    That's a weird place for a fireplace.