DispatchGroup: Waiting for Data | Swift 4, Xcode 9

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 96

  • @unalcelik1144
    @unalcelik1144 5 років тому +4

    Simple but a killer tutorial! I nearly comment any videos on UA-cam for like once a year. This is awesome and helped me complete a neat interview project! Keep the good work, I'm subscribing for more.

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

    Who is this guy? BEST YT CODER! Keep up the good work!!

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

    Your style of explaining is flawless! Like, subscribe.

  • @brianleeson7402
    @brianleeson7402 5 років тому +9

    The extra cringe-y commentary is killing it for me. 7:26 "mm hm, so sexy." The practical examples are great. I frequently use your tutorials when I need examples. Thank you.

    • @Kilo_Loco
      @Kilo_Loco  5 років тому +2

      Probably safer reading a blog post. They don’t come with cringe-y commentary 😉

  • @hankim394
    @hankim394 5 років тому

    You seriously have quality videos over so many Swift topics. LetsBuildThatApp, Sean Allen, and you are the goto channels. Keep it up man. I appreciate your videos as a full-time iOS Developer and I know your channel will continue to grow

    • @Kilo_Loco
      @Kilo_Loco  5 років тому +1

      Thanks I really appreciate that! Be sure to share the channel so it can help out more people 😉

    • @hankim394
      @hankim394 5 років тому

      @@Kilo_Loco haha forsure brother

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

    Hello, thank you so much for this tutorial. You deserve a million subscribers 👍 I was stuck for couple of days because I can’t make the function to finish first before segue. Completion handler didn’t work for me. This one is a miracle!

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

    That was good, tx.
    I think we might want to add in the closure block a [weak self] to make the ARC happy?

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

    this video is quality bro !! Thumbs up !

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

      Haha thanks! Hopefully some of my newer stuff is even better

  • @earmouse11
    @earmouse11 6 років тому +1

    Thanks, I was having trouble figuring out how to implement DispatchGroup. Great, simple explaination. Thanks.

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

    I really appreciate the video. It's really easy to follow. Thanks a lot!

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

      Haha glad you liked it ☺️

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

    love your tutorials man! awesome!

  • @rohitp9371
    @rohitp9371 7 років тому

    It is just a awesome video. Never find such easy description of dispatch group. Thank you so much..

  • @sourishkeka
    @sourishkeka 5 років тому

    Thank you Kilo Loco, for making us understand easily.

  • @jayyupinhu9146
    @jayyupinhu9146 7 років тому +25

    I care about your channel! haha, please keep up with the great tutorials! :D

    • @Kilo_Loco
      @Kilo_Loco  7 років тому +3

      +Jay Yupin Hu hehe thanks! Yea I plan on keeping them coming for the foreseeable future

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

    Hey dude really nice. Your videos are really simple and great. Keep going!!!!

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

    =D Thank you very much Mr. Kilo for your sexy lesson it helped me a lot to understand how to handle DispatchGroup.
    Keep it up and stay in your shape because I like it.

  • @my_dixie_rect8538
    @my_dixie_rect8538 6 років тому

    Good video, never used DispatchGroups like this before. Very handy.

    • @Kilo_Loco
      @Kilo_Loco  6 років тому

      Well if ya don’t know, now ya know! 😛

  • @tomjansen6318
    @tomjansen6318 7 років тому

    Glad you are back with another great tutorial!

    • @Kilo_Loco
      @Kilo_Loco  7 років тому +1

      +Tom Jansen glad to be back helping people

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

    Im trying to do this with displaying a cellection view that gets data from a Firestore query. It doesnt seem to work. any advice?

  • @Daniel-sz2lq
    @Daniel-sz2lq 6 років тому

    Solved the biggest issue I have at my job. Thanks my dude!

  • @gvnarayan9935
    @gvnarayan9935 7 років тому

    Subscribed ... Lol ... Your way of explaining is just awesome man

    • @Kilo_Loco
      @Kilo_Loco  7 років тому

      Someone’s gotta keep it 💯😉

  • @ViaVanille
    @ViaVanille 6 років тому

    This was my last step to make my huge graph work on my app and this video saved me tons of time!! THANKS SO MUCH MY CODE WORKS FINALLY THE WAY I WANT IT TO
    PS: I do care about your channel and also joined your course!

    • @Kilo_Loco
      @Kilo_Loco  6 років тому

      I’m glad I was able to help 😁👍🏽

  • @dawal85
    @dawal85 5 років тому

    Very good tutorial buddy! I love your sense of humor! :D
    Greetings from Tunisia!

    • @Kilo_Loco
      @Kilo_Loco  5 років тому +1

      Glad you liked it 😀 If there’s anyway to make my content better or if there’s a topic you want covered, please let me know.

  • @edouard_iosdev
    @edouard_iosdev 6 років тому

    Super useful video. Made me realise I got this whole thing implemented in a weird way in my current app. My users say 'thanks for less bugs' haha!

  • @georgefox2767
    @georgefox2767 6 років тому

    Dude you're so good at this! Thanks!

  • @AlessandroArcidiaco
    @AlessandroArcidiaco 6 років тому

    Great! But what if one of my function get an error? For example a bad response from server?

    • @Kilo_Loco
      @Kilo_Loco  6 років тому

      One solution would be to add a flag for each task and make sure they all pass before you run the rest of the logic

  • @MrPolkichcha
    @MrPolkichcha 5 років тому

    Your videos are fun and weird 😂

  • @sammypresents
    @sammypresents 7 років тому +1

    Subscribed. These are great informative videos. Thanks for making them.

    • @Kilo_Loco
      @Kilo_Loco  7 років тому

      +moonglare glad I could help. Be sure to share the channel so it can help others

  • @605dave
    @605dave 6 років тому +1

    Don't think a coding tutorial has made me laugh before, thanks. And yeah, that is some sexxxxxy code

  • @Smilec-w5k
    @Smilec-w5k 6 років тому

    Great toturial! Thank you!

  • @Илья-ы2р8с
    @Илья-ы2р8с 6 років тому

    Hi man! Great content! Respect and regards from russian iOS developer)

    • @Kilo_Loco
      @Kilo_Loco  6 років тому

      Thanks from American developer

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

    nice explain👍

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

    is the run after x seconds thing just for presentation purposes or is it actually important how many seconds i specify? also thanks man i finally understand the whole dispatch group thing!

  • @tomerabady3411
    @tomerabady3411 5 років тому

    You sir saved my day

  • @MaximGolovlev
    @MaximGolovlev 7 років тому +2

    make a video about operation queues please

    • @Kilo_Loco
      @Kilo_Loco  7 років тому +1

      +Maxim Golovlev I will add that to the list trello.com/c/c4QWZ013

    • @david-tracy
      @david-tracy 6 років тому

      yes please

  • @GauravKumar-xr3wr
    @GauravKumar-xr3wr 6 років тому

    Hi, I want to call an api method in application didFinishLaunchingWithOptions (Appdelegate) and wait till the time it will be executed but unable to perform so as before execution of dispatch group it returns true. Any ways in which this can be done

  • @rayashibeto
    @rayashibeto 5 років тому

    Great! thanks for sharing!

    • @Kilo_Loco
      @Kilo_Loco  5 років тому

      Always a pleasure to help

  • @capelanus
    @capelanus 6 років тому

    what if I need to wait for a function inside getGroupB before continue with getGroupC ¿? thank u so much for ur videos!

  • @pjsimas9723
    @pjsimas9723 7 років тому

    Great videos! Thanks for sharing. How would you recommend passing the result of (a JSON request) groupA into the next function groupB and again the result of groupB into the next function groupC etc?
    Essentially, I have a funcA that returns an array from network request, funcB cycles through that array to return a new set of data, which is stored to firebase, funcC pulls that data down to work with and so on. This seems like such an elementary necessity, but not sure how best to do A->B->C in order where the result of each is passed to the next. Thanks for the help and keep up the videos!!!

    • @Kilo_Loco
      @Kilo_Loco  7 років тому +1

      +PJ Simas you can just do
      func getA() {
      //networking request...
      guard let jsonArray = data as? [[String: Any]] else { return }
      self.getB(with: jsonArray)
      }
      func getB(with jsonArray: [[String: Any]]) {
      // pass jsonArray as parameter in next network request
      // do whatever you want with the new data
      self.getC()
      }
      func getC() {
      // Pull data
      }
      If you’re working with Firebase, the observer should automatically update your data though

  • @basdak17
    @basdak17 6 років тому

    hello guy, I'm a problem with my code. I'm used Threads or DispatchQueue to print in a textview, the problem I have is to print in real time in textview
    and avoid the final impression after obtaining the result.

  • @KushalAshok
    @KushalAshok 5 років тому

    Good one!

  • @wkn3445
    @wkn3445 6 років тому

    thank you Kilo !!!

  • @RameshGadagoju
    @RameshGadagoju 6 років тому

    Nice tutorials

    • @Kilo_Loco
      @Kilo_Loco  6 років тому

      Thanks! Hopefully they're getting better as time goes

  • @robiscjuan
    @robiscjuan 6 років тому

    17:26 new fan here

  • @shaktiprakash1723
    @shaktiprakash1723 6 років тому

    Hey kilo ,nice tutorial i just modified few things like this
    for i in 0...10 {
    getGroupA()
    getGroupB()
    getGroupC()
    }
    but the result did n't come as it is intended means its not taking that amount of time .Why this did happen with foe loop

  • @captainTahir
    @captainTahir 7 років тому +1

    Great..........

  • @charleswilson4400
    @charleswilson4400 6 років тому

    THANK YOU

  • @ilyabaykalov3342
    @ilyabaykalov3342 6 років тому

    it's a perfect! thank u! i subscribed =)

  • @Changenow-ze2sl
    @Changenow-ze2sl 5 років тому

    thank u!

  • @paulancajima
    @paulancajima 6 років тому

    Thanks

  • @ahujapravir
    @ahujapravir 5 років тому

    You're awesome! :D

  • @Traoreee
    @Traoreee 5 років тому +1

    perfetto

  • @hoijanlai
    @hoijanlai 5 років тому

    I like kyrie irving teaching me swift

  • @JyotiSharma-fs3ti
    @JyotiSharma-fs3ti 6 років тому

    subscribed ...

  • @heyrahulrs
    @heyrahulrs 7 років тому

    👌🏻

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

    funny style, but cool

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

    Great video, but too much unnecessary noise...Was better when you acted serious...

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

    DOOD!

  • @ellenzhang8303
    @ellenzhang8303 6 років тому

    I care about you. haha

  • @TopCaliber
    @TopCaliber 6 років тому +1

    Good content but insanely creepy commentary

  • @MOHANRAJ10
    @MOHANRAJ10 5 років тому

    Ok , please avoid your sexy speech.