Wait for Multiple Fetch Requests to Finish | JavaScript Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • 👉 Source code: openjavascript...
    ⚡ Need hosting for a website, WordPress blog or Node.js app? We use HostWithLove: bit.ly/3V2RM9Q ❤️
    This tutorial shows you how to wait for multiple fetch requests before doing something using Promise.all() and Promise.allSettled().
    #javascript #fetch #promises #asynchronous #javascript_tutorial #webdevelopment #nodejs
    ⚡ NEW: Web development courses from Meta Inc. ⚡
    Front-End Developer Professional Certificate: imp.i384100.ne...
    Back-End Developer Professional Certificate: imp.i384100.ne...
    iOS Developer Professional Certificate: imp.i384100.ne...
    Meta Android Developer Professional Certificate: imp.i384100.ne...
    Meta Database Engineer Professional Certificate: imp.i384100.ne...

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

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

    Thanks for watching!
    👉 Source code: openjavascript.info/2023/01/12/wait-for-multiple-fetch-requests-to-finish/

  • @davidguevara_
    @davidguevara_ 7 หลายเดือนก่อน

    Very useful, I was managing multiple calls, but I didn't like how I had done it, but with this structure it will look more "fancy" jajaja, thanks man!

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

    excellent, Thank you 👍

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

    you're a life saver, a great video man!!

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

      Glad you found this useful - and thanks!

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

    Well Explained, Thank You !

  • @devfreeguy
    @devfreeguy 10 หลายเดือนก่อน

    Thanks man, this is a life saver

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

    This is fantastic. Do you think you can extend this to map the the response to a variable in success array and use the variable in another function instead of array indexes.

  • @c-k4746
    @c-k4746 ปีที่แล้ว

    you re the king bro thanks

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

      Thanks, but I think the real king is whoever came up with Promise.all() and Promise.allSettled()...glad you liked the video :)

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

    Muy Bueno... Se aprende bastante... :D

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

    one word "awesome"

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

      Indeed, this Promise object is very awesome!