Concurrency in Flutter and Dart - Running Multiple Async Requests at Once - Programming Addict

Sdílet
Vložit
  • čas přidán 14. 11. 2020
  • In this video I show you how to run concurrent requests in Flutter. Running multiple requests at the same time will in a lot of cases improve the load speeds for your apps which will improve your user experience. You'll see how to use async / await in an efficient way using the Future.wait method
    Concurrency in Flutter - Running Multiple Async Requests at Once - Programming Addict
    ►THIS PROJECT ON GITHUB◄
    Check pinned comment
    ►Video on Futures◄
    • What are Futures? Asyn...
    ►SUBSCRIBE TO THE CHANNEL◄
    ►CHECK OUT OTHER VIDEOS ON THE CHANNEL◄
    ►FOR ANY QUESTIONS CONTACT ME AT◄
    Email: programmingaddictyt@gmail.com
    ►THIS PROJECT ON GITHUB◄
    bit.ly/3peCdNg

Komentáře • 32

  • @ProgrammingAddict
    @ProgrammingAddict  Před 3 lety +1

    *This project on Github*
    tinyurl.com/y52fc6np
    *Instagram*
    instagram.com/programming.addict/
    *Twitter*
    twitter.com/programmingadct

    • @emeryryan2415
      @emeryryan2415 Před 3 lety

      You prolly dont give a shit but if you are bored like me atm then you can stream pretty much all the new series on instaflixxer. Been binge watching with my girlfriend for the last few months :)

    • @emanuelaydin3306
      @emanuelaydin3306 Před 3 lety

      @Emery Ryan definitely, been using instaflixxer for years myself =)

  • @bramaningds
    @bramaningds Před měsícem

    3 years and still interesting topic

  • @The12Gage92
    @The12Gage92 Před rokem +1

    This was exactly what I was looking for. Much appreciated.

  • @sergiofranklin8809
    @sergiofranklin8809 Před 3 lety +4

    finally, you've come back) Thank you for the video

  • @Tech1st
    @Tech1st Před 3 lety

    It's really helpful , thank you

  • @gilmcglory3748
    @gilmcglory3748 Před 3 lety +1

    Thanks for this very interesting tutorial, which offers a lot of possibilities. I'll give it a try.

  • @thiyraashdavid7784
    @thiyraashdavid7784 Před 3 lety

    Thanks for the info bro!

  • @rapoliit
    @rapoliit Před 3 lety

    yaa now i subscribed . thank you so much. its rarely covered concept.

  • @francescozazza1583
    @francescozazza1583 Před 3 lety

    Thank you bro, awesome!!!

  • @pravinprince3221
    @pravinprince3221 Před 4 měsíci

    Thank you for the wondeful video sir, it is so useful for me and my team, thanks again sir

  • @dennisosamuyimen6378
    @dennisosamuyimen6378 Před 3 lety

    Thanks, this was awesome

  • @noumanzafar8566
    @noumanzafar8566 Před 2 lety +1

    Thanks for the great video. what if we have request that depended on each other and we want them to be executed from the same function

  • @kamaludin4573
    @kamaludin4573 Před 3 lety

    Nice video, please make firebase fcm notification video.

  • @safi4588
    @safi4588 Před 8 měsíci

    Hope it fixed 429 issue also thanks for the video 🎉

  • @Tech1st
    @Tech1st Před 3 lety +1

    If i want to get one API details should refresh other All API also,?

  • @avnish3719
    @avnish3719 Před 3 lety

    how we will handle the API status code and exception.

  • @infantraj4289
    @infantraj4289 Před 2 lety +1

    Thank you for the video, I have a question how many requests can give for better performance without exception.

    • @HUNGTRAN-yj2yq
      @HUNGTRAN-yj2yq Před 2 lety

      Hi, I have the same question. Do you find out any solution?

  • @vigneshreddy9262
    @vigneshreddy9262 Před 3 lety +1

    Please answer this 🤔
    while using list with map getting error
    final abc=Future.wait(
    list1.map((item)=> http.get('some request')).toList()
    )
    Error
    The method 'then' was called on null

  • @fredili3002
    @fredili3002 Před 8 měsíci

    Will this work on Dio and can It counter connection timeout?

  • @nehakushwah8055
    @nehakushwah8055 Před 2 lety

    In Safari, if any request fail, then it is not executing other requests, how to fix this issue?

  • @francescofreddi4374
    @francescofreddi4374 Před 3 lety

    Thank... like always......
    i have one problem; in one my project i catch some input String with BehaviorSubject in one class... inside that class there is one method that download some data (when arrive inside stream) from internet and give a Future...............
    In other class, where there is UI, is a statelesswidget and there is a FutureBuilder that display this data (form other class) but, but, but........ here in UI for display data i only found solution to use Statefullwidget and setState({}) because data there is, but FutureBuildet dont render nothing; even thought data arrive.
    Have you got some idea to solve this problem and avoid stateFull? please?

    • @francescofreddi4374
      @francescofreddi4374 Před 3 lety

      i dont know if is better... construct a futureBuilder by calling on Provider (and call method) object from other class (where there is stream) OR construct his FutureProvider in the widget tree (near other normal Provider in that case) for retrive data :(

  • @angularsight6529
    @angularsight6529 Před 2 lety

    Crazy macha neenu...hope you have a good beautiful wife.
    Kshemvag hog labvag baa.