Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!