Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
Is the await keyword blocking

I'm currently reading 'Javascript: The Definitive Guide' and I have a question in relation to the asynchrony of the await keyword. In the book it states 'think of the await keyword as a marker that breaks up a function body into seperate synchronous chunks'. I presumed the only purpose of this would be to run each of them concurrently.

But in relation to the below example, the book states that 'fetching of the 2nd URL will not begin until the first fetch is complete'. And so I'm a bit confused as both statements seem contradictory. Any help would be appreciated. Thanks

let value1 = await getJSON(url1);
let value2 = await getJSON(url2);
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda