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

338
Views
Is Web API:S Fetch() parallell or async?

I'm having trouble finding the answer to this. When we call fetch(), is the browser opening a new thread or is the call just put in the microqueue?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The answer is sort of "both":

  • The network request itself is processed in parallel with anything else happening on your JavaScript thread, not on the JavaScript thread. (In all major browsers.)

  • When the network request is complete, a promise reaction (fulfillment or rejection) is queued to be picked up by the JavaScript thread when it's next checking the relevant queue. (I think what happens is that the browser queues a task that settles the promise, which in turn queues any relevant promise reactions in the microtask queue. The details don't really matter, though; fundamentally, once the network request is complete, a task/microtask is queued somewhere for any promise reactions that need to happen, and picked up by the JavaScript thread like other tasks/microtasks.)

about 4 years ago · Juan Pablo Isaza Report
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!