#25 - Promise.race() in JavaScript

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 2

  • @gamingpassion1897
    @gamingpassion1897 9 месяцев назад

    Promise.race([Func1,Func2)].
    Let's say if Func1() gets executed first. Then will the execution of Func2 stop? Or will it continue to execute?

    • @Matter743
      @Matter743 2 месяца назад

      It will get executed suppose you have two api calls in func1 and func2 respectively and func1 got executed first then the promise will get resolved and the return value of promise will be of func1 but the func2 will execute at some moment of time but that output is neglected